]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
process: correct docs of fork_processes exit behavior 2772/head
authorPierce Lopez <pierce.lopez@gmail.com>
Sun, 10 Nov 2019 17:43:27 +0000 (12:43 -0500)
committerPierce Lopez <pierce.lopez@gmail.com>
Sun, 10 Nov 2019 17:43:27 +0000 (12:43 -0500)
fixes #2771

tornado/process.py

index 9e4c194af5ebcc67d6fca35351240ab4a091ea61..422365986bffea6a3774b5c477c20c124da5250c 100644 (file)
@@ -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.