[Pkg-sugar-commit] [sugar-toolkit] 93/118: Removes the use of O_SYNC on logs #1656
Jonas Smedegaard
dr at jones.dk
Thu Apr 16 18:49:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to annotated tag debian/0.84.10-1
in repository sugar-toolkit.
commit 115405d5e51d4fa0260cf5344ea6668e773c5b2b
Author: James Cameron <quozl at laptop.org>
Date: Tue Mar 9 09:29:30 2010 +1100
Removes the use of O_SYNC on logs #1656
With O_SYNC on open of log files, on systems with slow filesystem random
write performance, there is random activity startup time.
---
src/sugar/activity/activityfactory.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/sugar/activity/activityfactory.py b/src/sugar/activity/activityfactory.py
index e218a7c..2a6e4a9 100644
--- a/src/sugar/activity/activityfactory.py
+++ b/src/sugar/activity/activityfactory.py
@@ -153,8 +153,7 @@ def open_log_file(activity):
while True:
path = env.get_logs_path('%s-%s.log' % (activity.get_bundle_id(), i))
try:
- fd = os.open(path, os.O_EXCL | os.O_CREAT \
- | os.O_SYNC | os.O_WRONLY, 0644)
+ fd = os.open(path, os.O_EXCL | os.O_CREAT | os.O_WRONLY, 0644)
f = os.fdopen(fd, 'w', 0)
return (path, f)
except OSError, e:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-toolkit.git
More information about the pkg-sugar-commit
mailing list