merge - 7a3f3ad83676 Fixes Issue #12044.

This commit is contained in:
Gregory P. Smith 2011-05-11 22:18:23 -07:00
parent 79a11e71c6
commit c9557af441
4 changed files with 10 additions and 3 deletions

View file

@ -764,6 +764,8 @@ class Popen(object):
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: