]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: handle all terminating signals
authorPádraig Brady <P@draigBrady.com>
Thu, 20 Nov 2025 16:02:43 +0000 (16:02 +0000)
committerPádraig Brady <P@draigBrady.com>
Fri, 21 Nov 2025 12:12:28 +0000 (12:12 +0000)
commitd0a51c614def6cf4f39fafe8ca7dcef925c4a503
treee1cb4c098d23ae808b862d5f049846b1ac7f8de4
parent1d58e4ddab548f574210da57ca44890a73efe9f8
timeout: handle all terminating signals

* src/timeout.c (term_sig): A new global list of all signals
whose default disposition is to terminate the process.
(install_cleanup): Iterate over the TERM_SIG list, rather than
installing the handler for a specific subset.
(block_cleanup_and_chld): Likewise.
* tests/timeout/timeout.sh: Add a test case for SIGPIPE.
* NEWS: Mention the bug fix.
NEWS
src/timeout.c
tests/timeout/timeout.sh