diff Lib/subprocess.py @ 70049:b00a64a5cb93 3.2

merge - 7a3f3ad83676 Fixes Issue #12044.
author Gregory P. Smith <greg@krypto.org>
date Wed, 11 May 2011 22:18:23 -0700
parents 4c3ae7d04664
children 654d473f2951
line wrap: on
line diff
--- a/Lib/subprocess.py	Wed May 11 14:02:13 2011 -0400
+++ b/Lib/subprocess.py	Wed May 11 22:18:23 2011 -0700
@@ -764,6 +764,8 @@
             self.stderr.close()
         if self.stdin:
             self.stdin.close()
+        # Wait for the process to terminate, to avoid zombies.
+        self.wait()
 
     def __del__(self, _maxsize=sys.maxsize, _active=_active):
         if not self._child_created: