summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-04-19 09:35:45 +0000
committerAnand Avati <avati@gluster.com>2011-04-21 00:39:45 -0700
commit29ac0febecbca0700bb4b1e2335b8dace5ff452c (patch)
tree864d785152a8c3eaa8bb147ebd70c43dee342d39
parent19e4ef605fe95c08c48bcade95096082a54cdd2d (diff)
syncdaemon: fix double wait in monitor
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2816 ([glusterfs-3.2.0qa14]: gsyncd monitor crashed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2816
-rw-r--r--xlators/features/marker/utils/syncdaemon/monitor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/utils/syncdaemon/monitor.py b/xlators/features/marker/utils/syncdaemon/monitor.py
index afc6403d2b1..5e5d22f4f91 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):