Skip to content

Commit bc60630

Browse files
committed
Remove an artifact from old approach.
1 parent 62e9549 commit bc60630

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Python/pystate.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2152,7 +2152,7 @@ tstate_wait_attach(PyThreadState *tstate)
21522152
_PyParkingLot_Park(&tstate->state, &state, sizeof(tstate->state),
21532153
/*timeout=*/-1, NULL, /*detach=*/0);
21542154
}
2155-
else if (state == _Py_THREAD_SHUTTING_DOWN && tstate->daemon) {
2155+
else if (state == _Py_THREAD_SHUTTING_DOWN) {
21562156
// We're shutting down, so we can't attach.
21572157
_PyThreadState_HangThread(tstate);
21582158
}
@@ -3092,9 +3092,6 @@ _PyThreadState_CheckConsistency(PyThreadState *tstate)
30923092
int
30933093
_PyThreadState_MustExit(PyThreadState *tstate)
30943094
{
3095-
if (!tstate->daemon) {
3096-
return 0;
3097-
}
30983095
int state = _Py_atomic_load_int_relaxed(&tstate->state);
30993096
return state == _Py_THREAD_SHUTTING_DOWN;
31003097
}

0 commit comments

Comments
 (0)