diff options
author | James Cameron <quozl@laptop.org> | 2010-03-08 22:29:30 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2010-03-09 21:23:55 (GMT) |
commit | f8ef93bd2106d24dfb9d20934abc4d0c1e7ce741 (patch) | |
tree | 0fae4ed2b602b39db49113825906fe840c0aa937 | |
parent | 6921bcd67dc8008d4ea7a7840b89d988aab2dc81 (diff) |
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.
-rw-r--r-- | src/sugar/activity/activityfactory.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sugar/activity/activityfactory.py b/src/sugar/activity/activityfactory.py index eda7d9a..c12630e 100644 --- a/src/sugar/activity/activityfactory.py +++ b/src/sugar/activity/activityfactory.py @@ -149,8 +149,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: |