[issue18763] subprocess: file descriptors should be closed after preexec_fn is called

Gregory P. Smith report at bugs.python.org
Sat Aug 17 01:37:03 CEST 2013


Gregory P. Smith added the comment:

I don't see a patch attached, but I do not recall any good reason off the top of my head for preexec_fn to be called as late as it is.  Moving it up to be called before the fd closing loop makes sense as a bug fix.

All bets are off when it comes to safe behavior for preexec_fn users anyways. :)

----------

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


More information about the Python-bugs-list mailing list