diff options
author | Guido van Rossum <guido@python.org> | 1998-01-19 22:00:38 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-01-19 22:00:38 +0000 |
commit | becf0188e580191d1769a61e2a11ddec8d0ce668 (patch) | |
tree | ad6577741ec6db60abb142563848d5d1930d355e /Python/pythonrun.c | |
parent | 2c4e0a79924eab0c5834c5f93a606263f34b22ec (diff) | |
download | cpython-becf0188e580191d1769a61e2a11ddec8d0ce668.tar.gz |
It seems obvious that when Py_Finalize() decides that there's nothing
to do, it should not call sys.exitfunc either...
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index e574281918..1007860642 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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; |