diff options
author | Csaba Henk <csaba@gluster.com> | 2011-03-10 00:40:21 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-10 07:39:25 -0800 |
commit | f2dd7abbf1af9832c891e6edadba696cefbccbe1 (patch) | |
tree | 74e5aaf835f56445df515bf8b785c5102bfb1623 /xlators/features | |
parent | 50492481a2b1e5a1425598fb44d802ec047f6c2f (diff) |
syncdaemon: ensure stdio is flushed before exit
Signed-off-by: Kaushik BV <kaushikbv@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2427 (set a proper default for remote syncdaemon)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2427
Diffstat (limited to 'xlators/features')
-rw-r--r-- | xlators/features/marker/utils/syncdaemon/gsyncd.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/gsyncd.py b/xlators/features/marker/utils/syncdaemon/gsyncd.py index 9d0b00095d0..331fda34fe2 100644 --- a/xlators/features/marker/utils/syncdaemon/gsyncd.py +++ b/xlators/features/marker/utils/syncdaemon/gsyncd.py @@ -145,6 +145,8 @@ def finalize(*a): raise if gconf.ssh_ctl_dir and not gconf.cpid: shutil.rmtree(gconf.ssh_ctl_dir) + sys.stdout.flush() + sys.stderr.flush() def main(): # ??? "finally" clause does not take effect with SIGTERM... |