]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-35182: fix communicate() crash after child closes its pipes (GH-18117)...
authorAlex Rebert <alex@forallsecure.com>
Thu, 23 Jan 2020 23:31:29 +0000 (18:31 -0500)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 23 Jan 2020 23:31:29 +0000 (15:31 -0800)
commit5654f83b9706af88040f515791f1cdc5d81cd9d6
treee433c05b39908f19fcdc3a1a00c1fb8e5e1cde93
parent5a2356be1a3f4a9b2e509a16062016b7d9dee7e9
[3.8] bpo-35182: fix communicate() crash after child closes its pipes (GH-18117) (GH-18148)

When communicate() is called in a loop, it crashes when the child process
has already closed any piped standard stream, but still continues to be running

Co-authored-by: Andriy Maletsky <andriy.maletsky@gmail.com>.
(cherry picked from commit d3ae95e1e945ed20297e1c38ba43a18b7a868ab6)

Co-authored-by: Alex Rebert <alex@forallsecure.com>
https://bugs.python.org/issue35182
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2019-10-31-19-23-25.bpo-35182.hzeNl9.rst [new file with mode: 0644]