changeset 15845:babe4565c371

mx: fixed incorrect test for subprocess being alive
author twisti
date Thu, 22 May 2014 12:41:53 +0200
parents d1822a8fe26f
children 399aa56c6366
files mxtool/mx.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Wed May 21 22:44:46 2014 -0700
+++ b/mxtool/mx.py	Thu May 22 12:41:53 2014 +0200
@@ -1847,7 +1847,7 @@
 
     def is_alive(p):
         if isinstance(p, subprocess.Popen):
-            return p.poll() is not None
+            return p.poll() is None
         assert isinstance(p, multiprocessing.Process), p
         return p.is_alive()