]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-142195: Fixed Popen.communicate indefinite loops (GH-143203)
authorPrithviraj Chaudhuri <p.chaudhuri1993@gmail.com>
Sun, 28 Dec 2025 16:57:44 +0000 (11:57 -0500)
committerGitHub <noreply@github.com>
Sun, 28 Dec 2025 16:57:44 +0000 (16:57 +0000)
commitfa9a4254e81c0abcc3345021c45aaf5f788f9ea9
tree73b8aeeeeac8e62724c4f27a285a1f5199dc0b5c
parentc3bfe5d5aa557e98b9ab53b8dbe9887c8c80be35
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.

---------

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]