summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2012-11-11 09:38:18 (GMT)
committerGregory P. Smith <greg@krypto.org>2012-11-11 09:38:18 (GMT)
commitc8ac03d936fd9fa7b48c0aaac01b66e8d8fcf766 (patch)
tree17694b3e6aa5de57be8c50335e735b5c51ae7ae9 /Misc
parent6893732c353ed7cbd2492164aa2b7c64a9f1c840 (diff)
parent12489d98e692717a93694644dac4975d54106178 (diff)
downloadcpython-c8ac03d936fd9fa7b48c0aaac01b66e8d8fcf766.zip
cpython-c8ac03d936fd9fa7b48c0aaac01b66e8d8fcf766.tar.gz
cpython-c8ac03d936fd9fa7b48c0aaac01b66e8d8fcf766.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index cd923b3..3e945b1 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -83,6 +83,9 @@ Core and Builtins
Library
-------
+- Issue #16140: The subprocess module no longer double closes its child
+ subprocess.PIPE parent file descriptors on child error prior to exec().
+
- Remove a bare print to stdout from the subprocess module that could have
happened if the child process wrote garbage to its pre-exec error pipe.