summaryrefslogtreecommitdiffstats
path: root/Include/pythonrun.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-05-04 18:02:30 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-05-04 18:02:30 (GMT)
commit0d5e52d3469a310001afe50689f77ddba6d554d1 (patch)
tree0427334f46907890af771153a28f2c39441a8d89 /Include/pythonrun.h
parente548f5a0018fb44ed3a2a365ff0c8c87e397eedd (diff)
downloadcpython-0d5e52d3469a310001afe50689f77ddba6d554d1.zip
cpython-0d5e52d3469a310001afe50689f77ddba6d554d1.tar.gz
cpython-0d5e52d3469a310001afe50689f77ddba6d554d1.tar.bz2
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.
Diffstat (limited to 'Include/pythonrun.h')
-rw-r--r--Include/pythonrun.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h
index bbcae73..00b4972 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -214,6 +214,8 @@ PyAPI_FUNC(void) PyByteArray_Fini(void);
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) */