]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-11003...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 29 Sep 2023 01:04:58 +0000 (18:04 -0700)
committerGitHub <noreply@github.com>
Fri, 29 Sep 2023 01:04:58 +0000 (01:04 +0000)
commitefe83ad2762e3ea8b396b44947033445c9b31d04
tree2afbd62f9879f13257ad97e035728cd161c3fd47
parenta99729599a70d73e8796f6c9d5cdf6807bda0cd5
[3.11] gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-110037) (#110065)

gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-110037)

On Windows, multiprocessing Popen.terminate() now catchs
PermissionError and get the process exit code. If the process is
still running, raise again the PermissionError. Otherwise, the
process terminated as expected: store its exit code.
(cherry picked from commit bd4518c60c9df356cf5e05b81305e3644ebb5e70)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/multiprocessing/popen_spawn_win32.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2023-09-28-18-53-11.gh-issue-110036.fECxTj.rst [new file with mode: 0644]