[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[minion-cvs] Reap children more aggressively
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv9533/src/minion/lib/mixminion
Modified Files:
Common.py
Log Message:
Reap children more aggressively
Index: Common.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Common.py,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- Common.py 20 Feb 2003 16:57:39 -0000 1.66
+++ Common.py 7 Apr 2003 17:50:36 -0000 1.67
@@ -852,7 +852,7 @@
while 1:
try:
# WIN32 This won't work on Windows. What to do?
- pid, status = os.waitpid(0, options)
+ pid, status = os.waitpid(-1, options)
except OSError, e:
break
except e:
@@ -869,7 +869,7 @@
while 1:
try:
# WIN32 This waitpid call won't work on Windows. What to do?
- pid, status = os.waitpid(0, os.WNOHANG)
+ pid, status = os.waitpid(-1, os.WNOHANG)
if pid == 0:
break
except OSError: