From a761eff84968c0d4bf0279fbb140b2c130c71d5c Mon Sep 17 00:00:00 2001 From: Pierce Lopez Date: Sun, 10 Nov 2019 12:43:27 -0500 Subject: [PATCH] process: correct docs of fork_processes exit behavior fixes #2771 --- tornado/process.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. -- 2.47.2