Commit 4cc462e8 authored by Guido van Rossum's avatar Guido van Rossum

It seems obvious that when Py_Finalize() decides that there's nothing

to do, it should not call sys.exitfunc either...
parent d2dd9a8b
...@@ -179,12 +179,12 @@ Py_Finalize() ...@@ -179,12 +179,12 @@ Py_Finalize()
PyInterpreterState *interp; PyInterpreterState *interp;
PyThreadState *tstate; PyThreadState *tstate;
call_sys_exitfunc();
if (!initialized) if (!initialized)
return; return;
initialized = 0; initialized = 0;
call_sys_exitfunc();
/* Get current thread state and interpreter pointer */ /* Get current thread state and interpreter pointer */
tstate = PyThreadState_Get(); tstate = PyThreadState_Get();
interp = tstate->interp; interp = tstate->interp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment