commit | 8a64048a22b42426cc45dfb2d713e295e97c768c | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Sat Dec 13 14:59:04 2008 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Sat Dec 13 14:59:04 2008 +0000 |
tree | 67b558f89948b345a433ae1045f8c0bfa22be24d | |
parent | e9859df7980e87f1dbad63fa22250a2e212327a4 [diff] [blame] |
Backport of r64212 Issue #1683: prevent forking from interfering in threading storage.
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 @@ { #ifdef WITH_THREAD PyEval_ReInitThreads(); + PyThread_ReInitTLS(); #endif }