mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
It seems obvious that when Py_Finalize() decides that there's nothing
to do, it should not call sys.exitfunc either...
This commit is contained in:
@@ -179,12 +179,12 @@ Py_Finalize()
|
||||
PyInterpreterState *interp;
|
||||
PyThreadState *tstate;
|
||||
|
||||
call_sys_exitfunc();
|
||||
|
||||
if (!initialized)
|
||||
return;
|
||||
initialized = 0;
|
||||
|
||||
call_sys_exitfunc();
|
||||
|
||||
/* Get current thread state and interpreter pointer */
|
||||
tstate = PyThreadState_Get();
|
||||
interp = tstate->interp;
|
||||
|
||||
Reference in New Issue
Block a user