commit | 8479a3426eb7d1840473f7788e639954363ed37e | [log] [tgz] |
---|---|---|
author | Eric Snow <ericsnowcurrently@gmail.com> | Fri Mar 08 23:44:33 2019 -0700 |
committer | GitHub <noreply@github.com> | Fri Mar 08 23:44:33 2019 -0700 |
tree | 9d588c5c30e29d0ab6d6aa0e25c53caba8c5b593 | |
parent | 5be45a6105d656c551adeee7770afdc3b806fbb5 [diff] [blame] |
bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245)
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 @@ PyEval_ReInitThreads(); _PyImport_ReInitLock(); _PySignal_AfterFork(); + _PyRuntimeState_ReInitThreads(); run_at_forkers(_PyInterpreterState_Get()->after_forkers_child, 0); }