File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2449,7 +2449,8 @@ Py_EndInterpreter(PyThreadState *tstate)
2449
2449
_Py_FinishPendingCalls (tstate );
2450
2450
2451
2451
_PyAtExit_Call (tstate -> interp );
2452
- _PyEval_StopTheWorld (interp );
2452
+ _PyRuntimeState * runtime = interp -> runtime ;
2453
+ _PyEval_StopTheWorldAll (runtime );
2453
2454
/* Remaining daemon threads will automatically exit
2454
2455
when they attempt to take the GIL (ex: PyEval_RestoreThread()). */
2455
2456
_PyInterpreterState_SetFinalizing (interp , tstate );
@@ -2459,7 +2460,7 @@ Py_EndInterpreter(PyThreadState *tstate)
2459
2460
_PyThreadState_SetShuttingDown (p );
2460
2461
}
2461
2462
2462
- _PyEval_StartTheWorld ( interp );
2463
+ _PyEval_StartTheWorldAll ( runtime );
2463
2464
_PyThreadState_DeleteList (list , /*is_after_fork=*/ 0 );
2464
2465
2465
2466
// XXX Call something like _PyImport_Disable() here?
You can’t perform that action at this time.
0 commit comments