[issue21619] Cleaning up a subprocess with a broken pipe

Martin Panter report at bugs.python.org
Tue Dec 16 11:47:26 CET 2014


Martin Panter added the comment:

Here is a patch to fix this by calling wait() even if stdin.close() fails, including a test case. With my patch, the subprocess context manager __exit__() will still raise a BrokenPipeError, but no zombie will be left.

----------
keywords: +patch
Added file: http://bugs.python.org/file37463/pipe-cleanup.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21619>
_______________________________________


More information about the Python-bugs-list mailing list