summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2019-09-11 09:23:05 (GMT)
committerT. Wouters <thomas@python.org>2019-09-11 09:23:05 (GMT)
commit580d2782f70f8e0bed7ec20abb03d740cb83b5da (patch)
tree28962e4e84a383c7d5c79250d406a663bc3fa7c8 /Misc
parent3fb1363fe87a24cdb2ee1dd9746f1c49046af958 (diff)
downloadcpython-580d2782f70f8e0bed7ec20abb03d740cb83b5da.zip
cpython-580d2782f70f8e0bed7ec20abb03d740cb83b5da.tar.gz
cpython-580d2782f70f8e0bed7ec20abb03d740cb83b5da.tar.bz2
bpo-37424: Avoid a hang in subprocess.run timeout output capture (GH-14490)
Fixes a possible hang when using a timeout on subprocess.run() while capturing output. If the child process spawned its own children or otherwise connected its stdout or stderr handles with another process, we could hang after the timeout was reached and our child was killed when attempting to read final output from the pipes.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-07-04-13-00-20.bpo-37424.0i1MR-.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-07-04-13-00-20.bpo-37424.0i1MR-.rst b/Misc/NEWS.d/next/Library/2019-07-04-13-00-20.bpo-37424.0i1MR-.rst
new file mode 100644
index 0000000..b98a17e
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-07-04-13-00-20.bpo-37424.0i1MR-.rst
@@ -0,0 +1,5 @@
+Fixes a possible hang when using a timeout on `subprocess.run()` while
+capturing output. If the child process spawned its own children or
+otherwise connected its stdout or stderr handles with another process, we
+could hang after the timeout was reached and our child was killed when
+attempting to read final output from the pipes.