]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40089: Fix threading._after_fork() (GH-19191)
authorVictor Stinner <vstinner@python.org>
Fri, 27 Mar 2020 16:50:42 +0000 (17:50 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2020 16:50:42 +0000 (17:50 +0100)
commitd8ff44ce4cd6f3ec0fab5fccda6bf14afcb25c30
tree009d56fe2dac5c1e920771297c9a08eb38d16ef8
parent5a58c5280b8df4ca5d6a19892b24fff96e9ea868
bpo-40089: Fix threading._after_fork() (GH-19191)

If fork was not called by a thread spawned by threading.Thread,
threading._after_fork() now creates a _MainThread instance for
_main_thread, instead of a _DummyThread instance.
Lib/threading.py
Misc/NEWS.d/next/Library/2020-03-27-17-22-34.bpo-40089.-lFsD0.rst [new file with mode: 0644]