commit | c2c4cb624bac98e0fdb52258655d26c385a35335 | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@krypto.org> | Sun Nov 11 01:41:49 2012 -0800 |
committer | Gregory P. Smith <greg@krypto.org> | Sun Nov 11 01:41:49 2012 -0800 |
tree | 3274ada131123110abcb0561cfa4fec9a742548b | |
parent | d4b645ef423667f179f136bee711b8ca85bd28d8 [diff] | |
parent | c8ac03d936fd9fa7b48c0aaac01b66e8d8fcf766 [diff] |
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.