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/Modules/signalmodule.c b/Modules/signalmodule.c index 9d223d5..352e739 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c
@@ -693,5 +693,6 @@ main_thread = PyThread_get_thread_ident(); main_pid = getpid(); _PyImport_ReInitLock(); + PyThread_ReInitTLS(); #endif }