]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-90872: Fix subprocess.Popen.wait() for negative timeout (#116989)
authorVictor Stinner <vstinner@python.org>
Tue, 19 Mar 2024 13:42:44 +0000 (14:42 +0100)
committerGitHub <noreply@github.com>
Tue, 19 Mar 2024 13:42:44 +0000 (14:42 +0100)
commit27cf3ed00cfe942f4277c273a3dda8ee2ba61fc8
tree18d2811b50c3e556e680c3fd91db7f39b8a57b2a
parent408e127159e54d87bb3464fd8bd60219dc527fac
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.
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]