From 29ac0febecbca0700bb4b1e2335b8dace5ff452c Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Tue, 19 Apr 2011 09:35:45 +0000 Subject: syncdaemon: fix double wait in monitor Signed-off-by: Csaba Henk Signed-off-by: Anand Avati BUG: 2816 ([glusterfs-3.2.0qa14]: gsyncd monitor crashed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2816 --- xlators/features/marker/utils/syncdaemon/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/features/marker/utils/syncdaemon/monitor.py b/xlators/features/marker/utils/syncdaemon/monitor.py index afc6403d2..5e5d22f4f 100644 --- a/xlators/features/marker/utils/syncdaemon/monitor.py +++ b/xlators/features/marker/utils/syncdaemon/monitor.py @@ -41,7 +41,7 @@ class Monitor(object): cpid = os.spawnv(os.P_NOWAIT, sys.executable, argv) time.sleep(60) ret = nwait(cpid, os.WNOHANG) - if not ret: + if ret == None: self.set_state('OK') ret = nwait(cpid) elif ret in (0, 1): -- cgit