mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Charles Waldman's patch to reinitialize the interpreter lock after a
fork. This solves the test_fork1 problem. (ceval.c, signalmodule.c, intrcheck.c) SourceForge: [ Patch #101226 ] make threading fork-safe
This commit is contained in:
parent
c79519569d
commit
fee3a2dd8c
3 changed files with 23 additions and 0 deletions
|
|
@ -195,4 +195,7 @@ PyOS_InterruptOccurred(void)
|
|||
void
|
||||
PyOS_AfterFork(void)
|
||||
{
|
||||
#ifdef WITH_THREAD
|
||||
PyEval_ReInitThreads();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue