diff options
| author | Vitor Pereira <vmsousapereira@gmail.com> | 2017-07-18 16:34:23 +0100 |
|---|---|---|
| committer | Antoine Pitrou <pitrou@free.fr> | 2017-07-18 17:34:23 +0200 |
| commit | ba75af713078966cc594fc7f0809ed53c532c58f (patch) | |
| tree | d55ae73192947f840b4e28457fec3d7fc32f875e /Doc/library | |
| parent | f474c5a3f3c1fbc0383800b88e8518d43a52d1d1 (diff) | |
| download | cpython-git-ba75af713078966cc594fc7f0809ed53c532c58f.tar.gz | |
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
Diffstat (limited to 'Doc/library')
| -rw-r--r-- | Doc/library/multiprocessing.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 5265639edb..9318a75091 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -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 |
