]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fixes issue #8052: The posix subprocess module's close_fds behavior was
authorGregory P. Smith <greg@krypto.org>
Sat, 21 Jan 2012 22:39:29 +0000 (14:39 -0800)
committerGregory P. Smith <greg@krypto.org>
Sat, 21 Jan 2012 22:39:29 +0000 (14:39 -0800)
commitd635af5a61897e6246bfb1ddf7e4d496bfd1121d
tree96f1aefab41799ff7337c65e1c5dc21064bb5ba7
parente961bd49342f875280d0336b328e5d748200e9e1
parent8facece99a5917077833c85c726a699ee7a374f6
Fixes issue #8052: The posix subprocess module's close_fds behavior was
suboptimal by closing all possible file descriptors rather than just
the open ones in the child process before exec().

It now closes only the open fds when it is possible to safely determine what
those are.
Lib/test/test_subprocess.py
Modules/_posixsubprocess.c
configure
configure.in
pyconfig.h.in