]> granicus.if.org Git - python/commit
Fixes issue #16140: The subprocess module no longer double closes its
authorGregory P. Smith <greg@krypto.org>
Sun, 11 Nov 2012 09:37:02 +0000 (01:37 -0800)
committerGregory P. Smith <greg@krypto.org>
Sun, 11 Nov 2012 09:37:02 +0000 (01:37 -0800)
commit12489d98e692717a93694644dac4975d54106178
treefd89ced1744ea9395e0d5d0cd432b3a3b8641f5b
parent3aee2221229b9802dcc27b2709d5e97918b8ad46
Fixes issue #16140: The subprocess module no longer double closes its
child subprocess.PIPE parent file descriptors on child error prior to
exec().

This would lead to race conditions in multithreaded programs where
another thread opened a file reusing the fd which was then closed out
from beneath it by the errant second close.
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS