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:
Guido van Rossum 2000-08-27 17:34:07 +00:00
parent c79519569d
commit fee3a2dd8c
3 changed files with 23 additions and 0 deletions

View file

@ -195,4 +195,7 @@ PyOS_InterruptOccurred(void)
void
PyOS_AfterFork(void)
{
#ifdef WITH_THREAD
PyEval_ReInitThreads();
#endif
}