diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-27 19:20:48 +0200 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-04-27 19:20:48 +0200 |
commit | 343260e6143bac261a17bc260593120b9156078c (patch) | |
tree | eafd1cb75b4173ad9f51e73aadb69ff216218d33 /Include | |
parent | fd44bcb9cd589b3f34ed53625594d53787e7d0cc (diff) | |
download | cpython-343260e6143bac261a17bc260593120b9156078c.tar.gz |
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 b9fe61e721..729342ccbd 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -111,6 +111,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); |