[Python-checkins] python/dist/src/Lib subprocess.py,1.12,1.13

astrand at users.sourceforge.net astrand at users.sourceforge.net
Sat Jan 1 10:38:59 CET 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24402

Modified Files:
	subprocess.py 
Log Message:
On UNIX, when the execution of the child fails, we must waitpid() to
prevent leaving zombies.


Index: subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/subprocess.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- subprocess.py	1 Jan 2005 09:36:34 -0000	1.12
+++ subprocess.py	1 Jan 2005 09:38:57 -0000	1.13
@@ -1023,6 +1023,7 @@
             data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB
             os.close(errpipe_read)
             if data != "":
+                os.waitpid(self.pid, 0)
                 child_exception = pickle.loads(data)
                 raise child_exception
 



More information about the Python-checkins mailing list