]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989) (#117003)
authorVictor Stinner <vstinner@python.org>
Tue, 19 Mar 2024 14:21:42 +0000 (15:21 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2024 14:21:42 +0000 (14:21 +0000)
commitc7b01e3c3268e86d689d273778488d9384559f10
tree3d087394125537f4d2bad0c7cfa409c62a3d35ff
parent299b6d06e8848e021e5c617597c222cfded92fce
[3.11] gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989) (#117003)

gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989)

On Windows, subprocess.Popen.wait() no longer calls
WaitForSingleObject() with a negative timeout: pass 0 ms if the
timeout is negative.

(cherry picked from commit 27cf3ed00cfe942f4277c273a3dda8ee2ba61fc8)
Lib/subprocess.py
Lib/test/test_subprocess.py
Misc/NEWS.d/next/Library/2024-03-19-11-08-26.gh-issue-90872.ghys95.rst [new file with mode: 0644]