]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: add --verbose to diagnose timeouts
authorPádraig Brady <P@draigBrady.com>
Thu, 23 Nov 2017 22:30:59 +0000 (14:30 -0800)
committerPádraig Brady <P@draigBrady.com>
Fri, 24 Nov 2017 01:46:55 +0000 (17:46 -0800)
commit559c7a57c73d619bbf68b2f6176bed0801d9716c
treeca6dd09093775f746d5f4ba3ea0a434569c65ab3
parent31dd7a0de272affa1120ba1fbc7db3445c548aa5
timeout: add --verbose to diagnose timeouts

This is useful as handling in shell is complicated
with the varying exit status in the --kill-after case.

* src/timeout.c (main): Handle '-v' and store
COMMAND for the diagnostic.
(cleanup): Diagnose the signal name before sending.
(usage): Document -v, --verbose.
* doc/coreutils.texi (timeout invocation): Likewise.
* tests/misc/timeout.sh: Add a test case.
* NEWS: Mention the new feature
Fixes https://bugs.gnu.org/21760
NEWS
doc/coreutils.texi
src/timeout.c
tests/misc/timeout.sh