]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: ensure we terminate command upon abnormal exit
authorPádraig Brady <P@draigBrady.com>
Fri, 28 Nov 2025 17:34:23 +0000 (17:34 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 29 Nov 2025 12:17:27 +0000 (12:17 +0000)
commitfc5c7b2e47fbe55034f4c8aa2f67caabcc5933dd
tree963874beede17f3fb4c8e54a2939e15ad51c5bd6
parentd1d311e7a244b908833fdae2f84fb5a613c055c7
timeout: ensure we terminate command upon abnormal exit

* src/timeout.c (main): Use PR_SET_PDEATHSIG to ensure the
child is terminated even if the parent terminates abnormally.
* tests/timeout/timeout-group.sh: Add a case to ensure sending
SIGKILL results in the termination of the monitored command.
* NEWS: Mention the improvement.
NEWS
src/timeout.c
tests/timeout/timeout-group.sh