mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-33608: Make sure locks in the runtime are properly re-created. (gh-12245)
This commit is contained in:
parent
5be45a6105
commit
8479a3426e
4 changed files with 40 additions and 40 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue