mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00: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
|
@ -667,6 +667,7 @@ void
|
|||
PyOS_AfterFork(void)
|
||||
{
|
||||
#ifdef WITH_THREAD
|
||||
PyEval_ReInitThreads();
|
||||
main_thread = PyThread_get_thread_ident();
|
||||
main_pid = getpid();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue