diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-06-17 02:39:18 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-06-17 02:39:18 (GMT) |
commit | c0bc4eff5093bd4268cb3d02b9dca2fcbe7e59ca (patch) | |
tree | 9a2ee96173bee1404d002fe5e53c86fd6d2193aa /Include/pythonrun.h | |
parent | 1a6561e2f593143565a6562e7818ea735d2b6790 (diff) | |
download | cpython-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.h | 2 |
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); |