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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30794>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to