[issue12044] subprocess.Popen.__exit__ doesn't wait for process end
Brian Curtin
report at bugs.python.org
Mon May 9 22:41:04 CEST 2011
Brian Curtin <brian at python.org> added the comment:
Seems like it would be enough to add a wait() at the end?
diff -r 9e473917cbfb Lib/subprocess.py
--- a/Lib/subprocess.py Mon May 09 21:17:02 2011 +0200
+++ b/Lib/subprocess.py Mon May 09 15:30:02 2011 -0500
@@ -796,6 +796,7 @@
self.stderr.close()
if self.stdin:
self.stdin.close()
+ self.wait()
def __del__(self, _maxsize=sys.maxsize, _active=_active):
if not self._child_created:
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12044>
_______________________________________
More information about the Python-bugs-list
mailing list