[issue32270] subprocess closes redirected fds even if they are in pass_fds
Antoine Pitrou
report at bugs.python.org
Sun Dec 10 13:38:47 EST 2017
Antoine Pitrou <pitrou at free.fr> added the comment:
Thanks for the report and the investigation!
> 1. The fact that file descriptors specified for redirection are closed (even with close_fds=False) unless in range [0, 2] is not documented and not tested.
That sounds like a bug to me, so we should fix it if decently possible.
> 2. pass_fds interaction with (1) should be fixed and documented. We may either raise ValueError if pass_fds contains a redirected fd or don't close such a redirected fd.
Same here, it seems like a bug which deserves fixing.
Do you want to submit a PR for this?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32270>
_______________________________________
More information about the Python-bugs-list
mailing list