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 43038b8 commit 8d4151cCopy full SHA for 8d4151c
Python/pylifecycle.c
@@ -2455,13 +2455,7 @@ Py_EndInterpreter(PyThreadState *tstate)
2455
}
2456
interp->finalizing = 1;
2457
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);
+ make_pre_finalization_calls(tstate);
2465
2466
if (tstate != interp->threads.head || tstate->next != NULL) {
2467
Py_FatalError("not the last thread");
0 commit comments