[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[minion-cvs] Handle sigchld more cleanly



Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv21450/src/minion/lib/mixminion

Modified Files:
	Common.py 
Log Message:
Handle sigchld more cleanly

Index: Common.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Common.py,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- Common.py	7 Apr 2003 17:50:36 -0000	1.67
+++ Common.py	13 Apr 2003 15:50:54 -0000	1.68
@@ -854,7 +854,7 @@
             # WIN32 This won't work on Windows.  What to do?
             pid, status = os.waitpid(-1, options)
         except OSError, e:
-            break
+            return
         except e:
             print e, repr(e), e.__class__
         if onceOnly:
@@ -864,7 +864,7 @@
     '''(Signal handler for SIGCHLD)'''
     # Because of the peculiarities of Python's signal handling logic, I
     # believe we need to re-register ourself.
-    signal.signal(signal_num, _sigChldHandler)
+    signal.signal(signal.SIGCHLD, _sigChldHandler)
 
     while 1:
         try: