diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2019-03-09 06:44:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-09 06:44:33 (GMT) |
commit | 8479a3426eb7d1840473f7788e639954363ed37e (patch) | |
tree | 9d588c5c30e29d0ab6d6aa0e25c53caba8c5b593 /Modules/posixmodule.c | |
parent | 5be45a6105d656c551adeee7770afdc3b806fbb5 (diff) | |
download | cpython-8479a3426eb7d1840473f7788e639954363ed37e.zip cpython-8479a3426eb7d1840473f7788e639954363ed37e.tar.gz cpython-8479a3426eb7d1840473f7788e639954363ed37e.tar.bz2 |
bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 540ee9d..3f76018 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -429,6 +429,7 @@ PyOS_AfterFork_Child(void) PyEval_ReInitThreads(); _PyImport_ReInitLock(); _PySignal_AfterFork(); + _PyRuntimeState_ReInitThreads(); run_at_forkers(_PyInterpreterState_Get()->after_forkers_child, 0); } |