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

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]