Skip to content

Commit 8d4151c

Browse files
committed
Deal with it in Py_EndInterpreter() as well.
1 parent 43038b8 commit 8d4151c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Python/pylifecycle.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,13 +2455,7 @@ Py_EndInterpreter(PyThreadState *tstate)
24552455
}
24562456
interp->finalizing = 1;
24572457

2458-
// Wrap up existing "threading"-module-created, non-daemon threads.
2459-
wait_for_thread_shutdown(tstate);
2460-
2461-
// Make any remaining pending calls.
2462-
_Py_FinishPendingCalls(tstate);
2463-
2464-
_PyAtExit_Call(tstate->interp);
2458+
make_pre_finalization_calls(tstate);
24652459

24662460
if (tstate != interp->threads.head || tstate->next != NULL) {
24672461
Py_FatalError("not the last thread");

0 commit comments

Comments
 (0)