Skip to content

timeout: return timed-out status after kill grace period#11392

Merged
sylvestre merged 2 commits intouutils:mainfrom
can1357:timeout-return-timed-out-status-after-kill-grace-period
Apr 3, 2026
Merged

timeout: return timed-out status after kill grace period#11392
sylvestre merged 2 commits intouutils:mainfrom
can1357:timeout-return-timed-out-status-after-kill-grace-period

Conversation

@can1357
Copy link
Copy Markdown
Contributor

@can1357 can1357 commented Mar 18, 2026

uutils timeout maps the -k/--kill-after post-timeout exit path to internal failure 125 when --preserve-status is not set. GNU reports 124 for this timed-out case, so timeout events are misclassified as utility failure.

Reproduction Steps

timeout -k 1 1 sleep 10; echo "exit=$?"
# Expected (GNU): exit=124
# Actual (uutils): exit=125

Impact

Scripts that branch on timeout status treat a normal timeout as an internal tool error. This breaks GNU-compatible timeout handling in automation and monitoring pipelines.

@sylvestre sylvestre merged commit dd2bcea into uutils:main Apr 3, 2026
163 checks passed
kevinburkesegment pushed a commit to kevinburkesegment/coreutils that referenced this pull request Apr 6, 2026
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants