]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989) (#117002)
authorVictor Stinner <vstinner@python.org>
Tue, 19 Mar 2024 14:15:05 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2024 14:15:05 +0000 (14:15 +0000)
commit35e8f04f1bc6676f6c427ba25bc2587cdd3f8960
tree96f2d0445c00f54804d633736a180f14d94066c6
parent23f97327fe7001118b51a69084b571a3da2e0cf0
[3.12] gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989) (#117002)

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]