bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245)

This commit is contained in:
Eric Snow 2019-03-08 23:44:33 -07:00 committed by GitHub
parent 5be45a6105
commit 8479a3426e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 40 deletions

View file

@ -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);
}