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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21619>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to