diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2019-03-08 23:44:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-08 23:44:33 -0700 |
| commit | 8479a3426eb7d1840473f7788e639954363ed37e (patch) | |
| tree | 9d588c5c30e29d0ab6d6aa0e25c53caba8c5b593 /Modules/posixmodule.c | |
| parent | 5be45a6105d656c551adeee7770afdc3b806fbb5 (diff) | |
| download | cpython-git-8479a3426eb7d1840473f7788e639954363ed37e.tar.gz | |
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 540ee9d925..3f76018357 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); } |
