[New-bugs-announce] [issue30794] Add multiprocessing.Process.kill()

Antoine Pitrou report at bugs.python.org
Wed Jun 28 16:03:41 EDT 2017


New submission from Antoine Pitrou:

subprocess.Popen() has both terminate() and kill() methods.  Under Unix, the first sends SIGTERM and the second SIGKILL.

multiprocessing.Process() only has terminate(), which sends SIGTERM.  It may be useful to add a kill() method to send SIGKILL (on Windows, kill() would be the same as terminate()).

One possible use case is when the child process has redefined the SIGTERM handler to something that doesn't trigger an exit (or takes a long time to exit).  Or if something non-interruptible is running...

----------
components: Library (Lib)
messages: 297216
nosy: davin, pitrou
priority: normal
severity: normal
stage: needs patch
status: open
title: Add multiprocessing.Process.kill()
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30794>
_______________________________________


More information about the New-bugs-announce mailing list