summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2012-09-09 17:31:08 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2012-09-09 17:31:08 (GMT)
commit5bedef3e64825c65e7bae51d2aea73f8bea34dd8 (patch)
treef43636e7433780c3fab8cd2696a1f7b85b6f0015 /Lib
parent36351564a252d396fcaeb63b785b21226bfacd67 (diff)
downloadcpython-5bedef3e64825c65e7bae51d2aea73f8bea34dd8.zip
cpython-5bedef3e64825c65e7bae51d2aea73f8bea34dd8.tar.gz
cpython-5bedef3e64825c65e7bae51d2aea73f8bea34dd8.tar.bz2
Issue #15881: Fixed 3.2 backport.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/multiprocessing/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/multiprocessing/util.py b/Lib/multiprocessing/util.py
index 5e501bd..20bba37 100644
--- a/Lib/multiprocessing/util.py
+++ b/Lib/multiprocessing/util.py
@@ -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)