mirror of
https://github.com/python/cpython.git
synced 2025-10-28 09:10:36 +00:00
bpo-30794: added kill() method to multiprocessing.Process (#2528)
* bpo-30794: added kill() method to multiprocessing.Process * Added entries to documentation and NEWS * Refactored test_terminate and test_kill * Fix SIGTERM and SIGKILL being used on Windows for the tests * Added "versionadded" marker to the documentation * Fix trailing whitespace in doc
This commit is contained in:
parent
f474c5a3f3
commit
ba75af7130
6 changed files with 40 additions and 9 deletions
|
|
@ -598,6 +598,12 @@ 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:: kill()
|
||||
|
||||
Same as :meth:`terminate()` but using the ``SIGKILL`` signal on Unix.
|
||||
|
||||
.. versionadded:: 3.7
|
||||
|
||||
.. method:: close()
|
||||
|
||||
Close the :class:`Process` object, releasing all resources associated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue