]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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:20:18 +0000 (16:20 +0100)
committerGitHub <noreply@github.com>
Fri, 15 Dec 2023 15:20:18 +0000 (15:20 +0000)
commit220fae770642141d91ca6299afd775493979c54b
tree1b0192df10b63fe8572f3495f6a91204cba40194
parent6ff7c1311f290552aaf29c3f72814e15e89c2702
[3.11] gh-113009: Fix multiprocessing Process.terminate() on Windows (GH-113128) (#113178)

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]