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

@ -667,6 +667,7 @@ void
PyOS_AfterFork(void)
{
#ifdef WITH_THREAD
PyEval_ReInitThreads();
main_thread = PyThread_get_thread_ident();
main_pid = getpid();
#endif