[Python-checkins] python/dist/src/Lib subprocess.py, 1.8.2.2, 1.8.2.3

astrand at users.sourceforge.net astrand at users.sourceforge.net
Sat Jan 1 10:32:19 CET 2005


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

Modified Files:
      Tag: release24-maint
	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.8.2.2
retrieving revision 1.8.2.3
diff -u -d -r1.8.2.2 -r1.8.2.3
--- subprocess.py	5 Dec 2004 20:04:56 -0000	1.8.2.2
+++ subprocess.py	1 Jan 2005 09:32:16 -0000	1.8.2.3
@@ -985,6 +985,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