]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40232: _PyImport_ReInitLock() can now safely use its lock (GH-20597)
authorVictor Stinner <vstinner@python.org>
Tue, 2 Jun 2020 15:13:49 +0000 (17:13 +0200)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2020 15:13:49 +0000 (17:13 +0200)
commit45b34a04a577aa49fa4825421758c3e8eaa1625d
tree3c6742d0d91b449447e32b5b75dbc884323cda50
parent26881c8fae3b67db3a01d335d3ae7356a29b433e
bpo-40232: _PyImport_ReInitLock() can now safely use its lock (GH-20597)

Since _PyImport_ReInitLock() now calls _PyThread_at_fork_reinit() on
the import lock, the lock is now in a known state: unlocked. It
became safe to acquire it after fork.
Python/import.c