]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40089: Fix threading._after_fork() (GH-19191) (GH-19194)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Apr 2020 21:35:52 +0000 (14:35 -0700)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 21:35:52 +0000 (23:35 +0200)
commit6318e45bda6c37d5497f33a6039cdb65aa494c93
tree9af2ffc756eb437e9d9d0e0bc1fdf393eb2cf095
parent8bd84e7f79a6cc7670a89a92edba3015aa781758
bpo-40089: Fix threading._after_fork() (GH-19191) (GH-19194)

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.
(cherry picked from commit d8ff44ce4cd6f3ec0fab5fccda6bf14afcb25c30)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/threading.py
Misc/NEWS.d/next/Library/2020-03-27-17-22-34.bpo-40089.-lFsD0.rst [new file with mode: 0644]