]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-36533: Reinit logging.Handler locks on fork(). (GH-12704) (GH-13170)
authorGregory P. Smith <greg@krypto.org>
Tue, 7 May 2019 20:29:41 +0000 (16:29 -0400)
committerGitHub <noreply@github.com>
Tue, 7 May 2019 20:29:41 +0000 (16:29 -0400)
commit3b4b28efbde63502709bede7c5f9403ec6f37428
treeaeabf0ee2fa912c5b9c1a110262ecbd6261fc30d
parent299f69c24c5f0fcfea0b7385b0da661cda78df19
[3.7] bpo-36533: Reinit logging.Handler locks on fork(). (GH-12704) (GH-13170)

Instead of attempting to acquire and release them all across fork
which was leading to deadlocks in some applications that had chained
their own handlers while holding multiple locks.
(cherry picked from commit 64aa6d2000665efb1a2eccae176df9520bf5f5e6)

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google LLC]
Lib/logging/__init__.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Library/2019-04-06-00-55-09.bpo-36533.kzMyRH.rst [new file with mode: 0644]