]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-142195: Fixed Popen.communicate indefinite loops (GH-143203) (#143256)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 28 Dec 2025 17:20:40 +0000 (18:20 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Dec 2025 17:20:40 +0000 (17:20 +0000)
commit8cfe1ab887f71a103bd98a7f3862a914e52debcd
treed47ce4ec41e8396ad09c49834e04dc1dfe6aa10f
parent750c3efe82ee03915a83f948939dd39637565225
[3.13] gh-142195: Fixed Popen.communicate indefinite loops (GH-143203) (#143256)

gh-142195: Fixed Popen.communicate indefinite loops (GH-143203)

Changed condition to evaluate if timeout is less than or equals to 0. This is needed for simulated time environments such as Shadow where the time will match exactly on the boundary.

---------
(cherry picked from commit fa9a4254e81c0abcc3345021c45aaf5f788f9ea9)

Co-authored-by: Prithviraj Chaudhuri <p.chaudhuri1993@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Lib/subprocess.py
Misc/NEWS.d/next/Library/2025-12-27-00-14-56.gh-issue-142195.UgBEo5.rst [new file with mode: 0644]