diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-27 17:30:16 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-27 17:30:16 (GMT) |
commit | 9ea1c8d7d73aea2990adab20e144827f268eef89 (patch) | |
tree | ce3df8b4c5ba01595489bf5aa2fdbbc8669fdd8f /Include | |
parent | 2356659f343523336724860263fdc41d74590b42 (diff) | |
parent | 0c759febb660ad3dabc976383e24c28658dfda39 (diff) | |
download | cpython-9ea1c8d7d73aea2990adab20e144827f268eef89.zip cpython-9ea1c8d7d73aea2990adab20e144827f268eef89.tar.gz cpython-9ea1c8d7d73aea2990adab20e144827f268eef89.tar.bz2 |
Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*
APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch
by Charles-François Natali.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pystate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/pystate.h b/Include/pystate.h index 96a70b9..1b0f099 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -132,6 +132,7 @@ PyAPI_FUNC(void) PyThreadState_Clear(PyThreadState *); PyAPI_FUNC(void) PyThreadState_Delete(PyThreadState *); #ifdef WITH_THREAD PyAPI_FUNC(void) PyThreadState_DeleteCurrent(void); +PyAPI_FUNC(void) _PyGILState_Reinit(void); #endif PyAPI_FUNC(PyThreadState *) PyThreadState_Get(void); |