[issue25942] subprocess.call SIGKILLs too liberally
Martin Panter
report at bugs.python.org
Mon Apr 4 17:03:23 EDT 2016
Martin Panter added the comment:
Even if we can’t agree on any behaviour change, I think it might be worth documenting how these functions behave on exceptions (interrupts) other than TimeoutExpired. Currently all I can find is “If the timeout expires, the child process will be killed and waited for.” I think this could be expanded to also say what happens if the parent is interrupted by a signal such as KeyboardInterrupt:
* Current behaviour: Immediately kill child (i.e. timeout expiry is not special)
* Previous behaviour: Return without waiting for child, which will become a zombie
* Mike’s proposal: Wait indefinitely for child without killing it, which could defeat the purpose of the timeout, especially if the child ignores or does not receive the same signal as the parent
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25942>
_______________________________________
More information about the Python-bugs-list
mailing list