Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff7ffdd

Browse files
author
Ask Solem
committed
Issue #8028: multiprocessing: Documented that Process.terminate
is only intented for use by the parent process.
1 parent 518eaa8 commit ff7ffdd

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

Doc/library/multiprocessing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ The :mod:`multiprocessing` package mostly replicates the API of the
422422
acquired a lock or semaphore etc. then terminating it is liable to
423423
cause other processes to deadlock.
424424

425-
Note that the :meth:`start`, :meth:`join`, :meth:`is_alive` and
426-
:attr:`exit_code` methods should only be called by the process that created
427-
the process object.
425+
Note that the :meth:`start`, :meth:`join`, :meth:`is_alive`,
426+
:meth:`terminate` and :attr:`exit_code` methods should only be called by
427+
the process that created the process object.
428428

429429
Example usage of some of the methods of :class:`Process`:
430430

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,6 +2879,9 @@ Build
28792879
Documentation
28802880
-------------
28812881

2882+
- Issue #8028: ``terminate()`` was missing from the list of
2883+
``multiprocessing.Process`` methods only intended for use by the parent.
2884+
28822885
- Issue #7707: Document that ``multiprocessing.Queue`` operations during import
28832886
can lead to deadlocks.
28842887

0 commit comments

Comments
 (0)