]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #10673: Document that Process.exitcode can be used to determine timeout
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 26 Sep 2016 20:22:22 +0000 (23:22 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 26 Sep 2016 20:22:22 +0000 (23:22 +0300)
Patch by Tom Clark.

Doc/library/multiprocessing.rst

index d20098ffa7c2e1da56e1550772d01c2ad4a8edc9..a5912f77a8648f07c03770db8cef78635e0b43a6 100644 (file)
@@ -496,6 +496,9 @@ The :mod:`multiprocessing` package mostly replicates the API of the
       If the optional argument *timeout* is ``None`` (the default), the method
       blocks until the process whose :meth:`join` method is called terminates.
       If *timeout* is a positive number, it blocks at most *timeout* seconds.
+      Note that the method returns ``None`` if its process terminates or if the
+      method times out.  Check the process's :attr:`exitcode` to determine if
+      it terminated.
 
       A process can be joined many times.