]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-91231: multiprocessing BaseManager waits 1.0 second (#91701)
authorVictor Stinner <vstinner@python.org>
Tue, 19 Apr 2022 15:06:00 +0000 (17:06 +0200)
committerGitHub <noreply@github.com>
Tue, 19 Apr 2022 15:06:00 +0000 (17:06 +0200)
Shutting down a multiprocessing BaseManager now waits for 1 second until
the process completes, rather than 0.1 second, after the process is
terminated.

Lib/multiprocessing/managers.py

index b6b4cdd9ac15eb4b5fc4d08a4979bb9ad7841f8c..22292c78b7b5b3a253c1d231ad12b225acd6f390 100644 (file)
@@ -677,7 +677,7 @@ class BaseManager(object):
                 if hasattr(process, 'terminate'):
                     util.info('trying to `terminate()` manager process')
                     process.terminate()
-                    process.join(timeout=0.1)
+                    process.join(timeout=1.0)
                     if process.is_alive():
                         util.info('manager still alive after terminate')