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] |
Backport of r64212 Issue #1683: prevent forking from interfering in threading storage.
diff --git a/Include/pythread.h b/Include/pythread.h index f26db16..b5a6ec3 100644 --- a/Include/pythread.h +++ b/Include/pythread.h
@@ -40,6 +40,9 @@ PyAPI_FUNC(void *) PyThread_get_key_value(int); PyAPI_FUNC(void) PyThread_delete_key_value(int key); +/* Cleanup after a fork */ +PyAPI_FUNC(void) PyThread_ReInitTLS(void); + #ifdef __cplusplus } #endif