[issue26731] subprocess on windows leaks stdout/stderr handle to child process when stdout/stderr overridden

STINNER Victor report at bugs.python.org
Tue Apr 12 19:02:28 EDT 2016


STINNER Victor added the comment:

The PEP 446 fixes the issue on UNIX for file descriptors, but you are right, there is still an issue with inheritable Windows handles. By default, Windows handles are not inheritable, but subprocess requires to make stdout and stderr pipes inheritable.

See:
https://www.python.org/dev/peps/pep-0446/#only-inherit-some-handles-on-windows

See also the issue #19764: "subprocess: use PROC_THREAD_ATTRIBUTE_HANDLE_LIST with STARTUPINFOEX on Windows Vista".

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list