From 49ecae52127524e2c129425ed6813f5ad8c7d11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 13 Dec 2008 14:59:04 +0000 Subject: Backport of r64212 Issue #1683: prevent forking from interfering in threading storage. --- Include/pythread.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include') diff --git a/Include/pythread.h b/Include/pythread.h index f26db160bf..b5a6ec38a6 100644 --- a/Include/pythread.h +++ b/Include/pythread.h @@ -40,6 +40,9 @@ PyAPI_FUNC(int) PyThread_set_key_value(int, void *); 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 -- cgit v1.2.1