mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #8028: multiprocessing: Documented that `Process.terminate
`
is only intented for use by the parent process.
This commit is contained in:
parent
518eaa8a76
commit
ff7ffdd752
2 changed files with 6 additions and 3 deletions
|
@ -422,9 +422,9 @@ 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.
|
||||
|
||||
Note that the :meth:`start`, :meth:`join`, :meth:`is_alive` and
|
||||
:attr:`exit_code` methods should only be called by the process that created
|
||||
the process object.
|
||||
Note that the :meth:`start`, :meth:`join`, :meth:`is_alive`,
|
||||
:meth:`terminate` and :attr:`exit_code` methods should only be called by
|
||||
the process that created the process object.
|
||||
|
||||
Example usage of some of the methods of :class:`Process`:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue