summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index e815492..e91c3cb 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -613,3 +613,12 @@ PyOS_InterruptOccurred()
}
return 0;
}
+
+void
+PyOS_AfterFork()
+{
+#ifdef WITH_THREAD
+ main_thread = get_thread_ident();
+ main_pid = getpid();
+#endif
+}