mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Issue #15881: Fixed 3.2 backport.
This commit is contained in:
parent
36351564a2
commit
5bedef3e64
1 changed files with 2 additions and 0 deletions
|
@ -294,6 +294,8 @@ def _exit_function(info=info, debug=debug, _run_finalizers=_run_finalizers,
|
|||
global _exiting
|
||||
|
||||
if not _exiting:
|
||||
_exiting = True
|
||||
|
||||
info('process shutting down')
|
||||
debug('running all "atexit" finalizers with priority >= 0')
|
||||
_run_finalizers(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue