]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-142195: Fixed Popen.communicate indefinite loops (GH-143203) (#143255)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 28 Dec 2025 17:22:47 +0000 (18:22 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Dec 2025 17:22:47 +0000 (17:22 +0000)
commit8def603d853c7f5e4ff57f95de289f99e1943669
treec842f15f98790fd428af0e46d0213ae1f5001ffe
parent4c3e2114b5887592612baa14f09988867234dbe6
[3.14] gh-142195: Fixed Popen.communicate indefinite loops (GH-143203) (#143255)

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]