]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128)...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 15 Dec 2023 15:21:02 +0000 (16:21 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2023 15:21:02 +0000 (15:21 +0000)
commit8c92d64ede33085f2fe5fcd734c0736a00b89b15
tree7ec0a7c778710dcf4037492aa7c1407a2eb4f6e9
parentded4307fc1abf2617a1c88abcc7ff352375ea47b
[3.12] gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128) (#113177)

gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128)

On Windows, Process.terminate() no longer sets the returncode
attribute to always call WaitForSingleObject() in Process.wait().
Previously, sometimes the process was still running after
TerminateProcess() even if GetExitCodeProcess() is not STILL_ACTIVE.
(cherry picked from commit 4026ad5b2c595b855a3605420cfa0e3d49e63db7)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/multiprocessing/popen_spawn_win32.py
Misc/NEWS.d/next/Windows/2023-12-14-19-00-29.gh-issue-113009.6LNdjz.rst [new file with mode: 0644]