diff options
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r-- | Modules/signalmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index d34f13246e..00a83b497c 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -991,6 +991,7 @@ void PyOS_AfterFork(void) { #ifdef WITH_THREAD + _PyGILState_Reinit(); PyEval_ReInitThreads(); main_thread = PyThread_get_thread_ident(); main_pid = getpid(); |