[issue6973] subprocess.Popen.send_signal doesn't check whether the process has terminated
Gregory P. Smith
report at bugs.python.org
Sun Nov 15 21:35:11 EST 2015
Gregory P. Smith added the comment:
I chose to go with the "there should not be an error" approach similar to how Python deals with multiple file closes. Both are technically programming errors but the point of Python is make life easier.
Reasoning? I don't want someone to ever think they could depend on getting an exception from send_signal/terminate/kill in this "process has already died and someone has called wait or poll to get its return code" situation as that is unreliable and potentially impacts other innocent processes.
----------
resolution: -> fixed
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6973>
_______________________________________
More information about the Python-bugs-list
mailing list