]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42350: Fix Thread._reset_internal_locks() (GH-23268)
authorVictor Stinner <vstinner@python.org>
Mon, 16 Nov 2020 14:20:34 +0000 (15:20 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 14:20:34 +0000 (15:20 +0100)
commit5909a494cd3ba43143b28bd439773ed85a485dfc
tree0b56888e59bd79cc18ade15404f231d6d700e551
parent3df5c68487df9d1d20ab0cd06e7942a4f96d40a4
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.
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]