summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/multiprocessing.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 6b4a8cb..5265639 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -598,6 +598,16 @@ The :mod:`multiprocessing` package mostly replicates the API of the
acquired a lock or semaphore etc. then terminating it is liable to
cause other processes to deadlock.
+ .. method:: close()
+
+ Close the :class:`Process` object, releasing all resources associated
+ with it. :exc:`ValueError` is raised if the underlying process
+ is still running. Once :meth:`close` returns successfully, most
+ other methods and attributes of the :class:`Process` object will
+ raise :exc:`ValueError`.
+
+ .. versionadded:: 3.7
+
Note that the :meth:`start`, :meth:`join`, :meth:`is_alive`,
:meth:`terminate` and :attr:`exitcode` methods should only be called by
the process that created the process object.