summaryrefslogtreecommitdiff
path: root/Parser
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-13 00:09:47 +0000
committerBenjamin Peterson <benjamin@python.org>2008-06-13 00:09:47 +0000
commite3d5374b2800a568d45f03c88a786a875db54bed (patch)
treef544f1cbb5706685a9ed575003c3bdb05d73614a /Parser
parentbbd96a455f1e8bce3f4ece588e1c32b441630a8b (diff)
downloadcpython-e3d5374b2800a568d45f03c88a786a875db54bed.tar.gz
#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 e0f3252db6..1356191436 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
}