[issue18763] subprocess: file descriptors should be closed after preexec_fn is called
Charles-François Natali
report at bugs.python.org
Fri Aug 23 19:46:27 CEST 2013
Charles-François Natali added the comment:
Here's a patch with a more robust test: the previous test worked, but assume that only stdin, stdout and stderr FDs would be open in the child process. This might not hold anymore in a near future (/dev/urandom persistent FD).
The new test is much more robust.
----------
stage: patch review -> commit review
Added file: http://bugs.python.org/file31443/subprocess_close-default-1.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18763>
_______________________________________
More information about the Python-bugs-list
mailing list