[Python-checkins] cpython (3.5): Issue #10673: Document that Process.exitcode can be used to determine timeout

berker.peksag python-checkins at python.org
Mon Sep 26 16:21:13 EDT 2016


https://hg.python.org/cpython/rev/112060f8abe8
changeset: 104083:112060f8abe8
branch: 3.5
parent: 104078:e9f34d382eda
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Sep 26 23:22:22 2016 +0300
summary:
 Issue #10673: Document that Process.exitcode can be used to determine timeout
Patch by Tom Clark.
files:
 Doc/library/multiprocessing.rst | 3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -496,6 +496,9 @@
 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.
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /