We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e9549 commit bc60630Copy full SHA for bc60630
1 file changed
Python/pystate.c
@@ -2152,7 +2152,7 @@ tstate_wait_attach(PyThreadState *tstate)
2152
_PyParkingLot_Park(&tstate->state, &state, sizeof(tstate->state),
2153
/*timeout=*/-1, NULL, /*detach=*/0);
2154
}
2155
- else if (state == _Py_THREAD_SHUTTING_DOWN && tstate->daemon) {
+ else if (state == _Py_THREAD_SHUTTING_DOWN) {
2156
// We're shutting down, so we can't attach.
2157
_PyThreadState_HangThread(tstate);
2158
@@ -3092,9 +3092,6 @@ _PyThreadState_CheckConsistency(PyThreadState *tstate)
3092
int
3093
_PyThreadState_MustExit(PyThreadState *tstate)
3094
{
3095
- if (!tstate->daemon) {
3096
- return 0;
3097
- }
3098
int state = _Py_atomic_load_int_relaxed(&tstate->state);
3099
return state == _Py_THREAD_SHUTTING_DOWN;
3100
0 commit comments