From f2dd7abbf1af9832c891e6edadba696cefbccbe1 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Thu, 10 Mar 2011 00:40:21 +0000 Subject: syncdaemon: ensure stdio is flushed before exit Signed-off-by: Kaushik BV Signed-off-by: Vijay Bellur BUG: 2427 (set a proper default for remote syncdaemon) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2427 --- xlators/features/marker/utils/syncdaemon/gsyncd.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/features') 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... -- cgit