mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00: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:
parent
d2dd9a8b7f
commit
4cc462e85b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue