[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated
Giampaolo Rodola'
report at bugs.python.org
Wed Jun 9 21:48:51 CEST 2010
Giampaolo Rodola' <g.rodola at gmail.com> added the comment:
I totally agree this should be fixed (there was a similar issue for psutil: http://code.google.com/p/psutil/issues/detail?id=58) but communicate() and wait() should be affected in the same manner.
Probably it would make sense to add an is_running() method and decorate send_signal(), kill(), communicate() and wait() methods with a function which makes sure that the process is still running, otherwise raises an exception instead.
Maybe it would also makes sense to provide a brand new NoSuchProcess exception class.
----------
nosy: +astrand, brian.curtin, giampaolo.rodola
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6973>
_______________________________________
More information about the Python-bugs-list
mailing list