Mercurial > cpython-lru_cache-weakref
diff Include/pythonrun.h @ 69832:2a19d09b08f8 3.2
Issue #1856: Avoid crashes and lockups when daemon threads run while the
interpreter is shutting down; instead, these threads are now killed when
they try to take the GIL.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Wed, 04 May 2011 20:02:30 +0200 |
| parents | 4f9d5263c8e9 |
| children | 4a31f6b11e7a c892b0321d23 |
line wrap: on
line diff
--- a/Include/pythonrun.h Wed May 04 18:39:29 2011 +0300 +++ b/Include/pythonrun.h Wed May 04 20:02:30 2011 +0200 @@ -214,6 +214,8 @@ PyAPI_FUNC(void) PyFloat_Fini(void); PyAPI_FUNC(void) PyOS_FiniInterrupts(void); PyAPI_FUNC(void) _PyGC_Fini(void); + +PyAPI_DATA(PyThreadState *) _Py_Finalizing; #endif /* Stuff with no proper home (yet) */
