diff options
| author | Pádraig Brady <P@draigBrady.com> | 2025-11-21 11:43:35 +0000 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2025-11-22 08:49:20 +0000 |
| commit | 8c24619334114a2524c8f87dd831fa0912560555 (patch) | |
| tree | 79f7628882a065e3155a146f7a1cc0591af52852 /scripts/git-hooks/commit-msg | |
| parent | d0a51c614def6cf4f39fafe8ca7dcef925c4a503 (diff) | |
| download | coreutils-8c24619334114a2524c8f87dd831fa0912560555.tar.gz coreutils-8c24619334114a2524c8f87dd831fa0912560555.zip | |
timeout: honor ignored signal dispositions
This behavior was depended on in our trap_sigpipe_or_skip_ helper,
and now that we're handling all terminating signals, we should
consistently honor their ignored signal dispositions.
* NEWS: Mention the change in behavior, especially in regard
to shell background jobs.
* src/timeout.c (sig_needs_handling): A new helper that return TRUE,
for --signal, SIG_ALRM, or non ignored signals.
(cleanup_install): Filter handled signals with the helper.
(block_cleanup_and_chld): Likewise.
* tests/timeout/timeout-group.sh: Adjust to use the now required
`env --default-signal=...` wrapper to reset (auto) ignored signals.
Also change the termination signal from SIGINT to SIGUSR1
to generalize the test signals not specially handled by the shell,
and newly handled by timeout(1).
* tests/timeout/timeout.sh: Add a test case for SIGPIPE
to ensure the ignored signal disposition is honored.
Diffstat (limited to 'scripts/git-hooks/commit-msg')
0 files changed, 0 insertions, 0 deletions
