]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) (GH-18117)
authorAlex Rebert <alex@forallsecure.com>
Wed, 22 Jan 2020 23:28:31 +0000 (18:28 -0500)
committerGregory P. Smith <greg@krypto.org>
Wed, 22 Jan 2020 23:28:31 +0000 (15:28 -0800)
commitd3ae95e1e945ed20297e1c38ba43a18b7a868ab6
tree788678084694d8dfcb2946d1ca594f1aba26f3ac
parent1f0f102dec506fd06f912b74dd2be64a7fba0d3f
bpo-35182: fix communicate() crash after child closes its pipes (GH-17020) (GH-18117)

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>
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]