summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-13 00:09:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-13 00:09:47 (GMT)
commit114f7e5ffff86daef0a9e9802317e7b259c447f9 (patch)
treee8ccddec529ca7299c3bbe37e21df40f572696cc /Parser
parent26305a03e3d501f9338af3f1373f8ec7da88838f (diff)
downloadcpython-114f7e5ffff86daef0a9e9802317e7b259c447f9.zip
cpython-114f7e5ffff86daef0a9e9802317e7b259c447f9.tar.gz
cpython-114f7e5ffff86daef0a9e9802317e7b259c447f9.tar.bz2
#1683 prevent forking from interfering in threading storage
This should prevent some test_multiprocessing failures
Diffstat (limited to 'Parser')
-rw-r--r--Parser/intrcheck.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/intrcheck.c b/Parser/intrcheck.c
index e0f3252..1356191 100644
--- a/Parser/intrcheck.c
+++ b/Parser/intrcheck.c
@@ -2,6 +2,7 @@
/* Check for interrupts */
#include "Python.h"
+#include "pythread.h"
#ifdef QUICKWIN
@@ -172,5 +173,6 @@ PyOS_AfterFork(void)
{
#ifdef WITH_THREAD
PyEval_ReInitThreads();
+ PyThread_ReInitTLS();
#endif
}