]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-113009: Fix multiprocessing Process.terminate() on Windows (#113128)
authorVictor Stinner <vstinner@python.org>
Fri, 15 Dec 2023 14:57:49 +0000 (15:57 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2023 14:57:49 +0000 (15:57 +0100)
commit4026ad5b2c595b855a3605420cfa0e3d49e63db7
tree2698e0d343a0e7488ee397ce93aff6284cc5edd9
parentd1a2adfb0820ee730fa3e4bbc4bd88a67aa50666
gh-113009: Fix multiprocessing Process.terminate() on Windows (#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.
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]