summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-08-27 17:34:07 (GMT)
committerGuido van Rossum <guido@python.org>2000-08-27 17:34:07 (GMT)
commitfee3a2dd8cf984b8261032086fe513bf7327b601 (patch)
tree2a579f921c3203bc159adcfd554961755cb1dc5b /Modules/signalmodule.c
parentc79519569d20d90cc9ec6ff8584dfd959bd2e1f1 (diff)
downloadcpython-fee3a2dd8cf984b8261032086fe513bf7327b601.zip
cpython-fee3a2dd8cf984b8261032086fe513bf7327b601.tar.gz
cpython-fee3a2dd8cf984b8261032086fe513bf7327b601.tar.bz2
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
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 4b9876f..368955e 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -667,6 +667,7 @@ void
PyOS_AfterFork(void)
{
#ifdef WITH_THREAD
+ PyEval_ReInitThreads();
main_thread = PyThread_get_thread_ident();
main_pid = getpid();
#endif