summaryrefslogtreecommitdiffstats
path: root/Include/pythonrun.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-06-17 02:39:18 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-06-17 02:39:18 (GMT)
commitc0bc4eff5093bd4268cb3d02b9dca2fcbe7e59ca (patch)
tree9a2ee96173bee1404d002fe5e53c86fd6d2193aa /Include/pythonrun.h
parent1a6561e2f593143565a6562e7818ea735d2b6790 (diff)
downloadcpython-c0bc4eff5093bd4268cb3d02b9dca2fcbe7e59ca.zip
cpython-c0bc4eff5093bd4268cb3d02b9dca2fcbe7e59ca.tar.gz
cpython-c0bc4eff5093bd4268cb3d02b9dca2fcbe7e59ca.tar.bz2
avoid crashes and lockups from daemon threads during interpreter shutdown (#1856)
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 6bfc175..c319c52 100644
--- a/Include/pythonrun.h
+++ b/Include/pythonrun.h
@@ -146,6 +146,8 @@ PyAPI_FUNC(void) PyFloat_Fini(void);
PyAPI_FUNC(void) PyOS_FiniInterrupts(void);
PyAPI_FUNC(void) PyByteArray_Fini(void);
+PyAPI_DATA(PyThreadState *) _Py_Finalizing;
+
/* Stuff with no proper home (yet) */
PyAPI_FUNC(char *) PyOS_Readline(FILE *, FILE *, char *);
PyAPI_DATA(int) (*PyOS_InputHook)(void);