Message297216
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... |
|
Date |
User |
Action |
Args |
2017-06-28 20:03:41 | pitrou | set | recipients:
+ pitrou, davin |
2017-06-28 20:03:41 | pitrou | set | messageid: <1498680221.55.0.739149893408.issue30794@psf.upfronthosting.co.za> |
2017-06-28 20:03:41 | pitrou | link | issue30794 messages |
2017-06-28 20:03:41 | pitrou | create | |
|