mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
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.
This commit is contained in:
parent
e548f5a001
commit
0d5e52d346
6 changed files with 69 additions and 7 deletions
|
@ -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) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue