mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
merge - 7a3f3ad83676 Fixes Issue #12044.
This commit is contained in:
parent
79a11e71c6
commit
c9557af441
4 changed files with 10 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue