From: Pierce Lopez Date: Sun, 10 Nov 2019 17:43:27 +0000 (-0500) Subject: process: correct docs of fork_processes exit behavior X-Git-Tag: v6.1.0b1~46^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2772%2Fhead;p=thirdparty%2Ftornado.git process: correct docs of fork_processes exit behavior fixes #2771 --- diff --git a/tornado/process.py b/tornado/process.py index 9e4c194af..422365986 100644 --- a/tornado/process.py +++ b/tornado/process.py @@ -110,9 +110,8 @@ def fork_processes( number between 0 and ``num_processes``. Processes that exit abnormally (due to a signal or non-zero exit status) are restarted with the same id (up to ``max_restarts`` times). In the parent - process, ``fork_processes`` returns None if all child processes - have exited normally, but will otherwise only exit by throwing an - exception. + process, ``fork_processes`` calls ``sys.exit(0)`` after all child + processes have exited normally. max_restarts defaults to 100.