]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: don't orphan monitored programs if they ignore specified signals
authorPádraig Brady <P@draigBrady.com>
Fri, 23 Oct 2009 07:52:25 +0000 (08:52 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 25 Oct 2009 23:28:38 +0000 (23:28 +0000)
commit69fbfd400c8000e7a7aeed399476c6d9c002a0bc
tree9b22bd760cbb452789a81253e28da984459aff44
parent30e4b6e84b7e478121a645515ce891d29cc75105
timeout: don't orphan monitored programs if they ignore specified signals

* src/timeout.c (install_signal_handlers): Handle any user
specified signal, so that if it does not cause the child
to exit then we don't exit and orphan the child. Previously this
for example, would leave an orphan dd process running:
timeout -sUSR1 1s dd if=/dev/zero of=/dev/null
* NEWS: Mention the fix.
NEWS
src/timeout.c