diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-27 17:28:05 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-27 17:28:05 (GMT) |
commit | 0c759febb660ad3dabc976383e24c28658dfda39 (patch) | |
tree | 665621563310f3c1b81062b65c149722e3c85a67 /Include/pystate.h | |
parent | 43ae619925cbcee7b59c3c370829a053fef40acb (diff) | |
download | cpython-0c759febb660ad3dabc976383e24c28658dfda39.zip cpython-0c759febb660ad3dabc976383e24c28658dfda39.tar.gz cpython-0c759febb660ad3dabc976383e24c28658dfda39.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/pystate.h')
-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 50245c2..9f876e9 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -131,6 +131,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); |