]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42350: Fix Thread._reset_internal_locks() (GH-23268)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 16 Nov 2020 15:17:17 +0000 (07:17 -0800)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 15:17:17 +0000 (07:17 -0800)
commitcf70854f10096446115408b5a94030b30594a459
tree0a5b1f816e5007f58e8de4ecdedaaf9e7e4ed783
parent7c4d8fa82aae98f2d638be68f21e9524a92a38e6
bpo-42350: Fix Thread._reset_internal_locks() (GH-23268)

Fix the threading.Thread class at fork: do nothing if the thread is
already stopped (ex: fork called at Python exit). Previously, an
error was logged in the child process.
(cherry picked from commit 5909a494cd3ba43143b28bd439773ed85a485dfc)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_threading.py
Lib/threading.py
Misc/NEWS.d/next/Library/2020-11-13-18-53-50.bpo-42350.rsql7V.rst [new file with mode: 0644]