]> git.ipfire.org Git - thirdparty/coreutils.git/commit
timeout: ensure --foreground -k exits with status 137
authorPádraig Brady <P@draigBrady.com>
Tue, 12 Oct 2021 13:32:57 +0000 (14:32 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 12 Oct 2021 13:32:57 +0000 (14:32 +0100)
commit0750fcdf3447366b074cb47dd8cbe88c83ed984d
tree4fb501373d7df1305057f9c8c26bfa004fbd31e9
parentd085678bd6fefa7d8aa2d44f3b604785a9ad30f9
timeout: ensure --foreground -k exits with status 137

* src/timeout.c (main): Propagate the killed status from the child.
* doc/coreutils.texi (timeout invocation): Remove the
description of the --foreground specific handling of SIGKILL,
now that it's consistent with the default mode of operation.
* tests/misc/timeout.sh: Add a test case.
* NEWS: Mention the change in behavior.
Fixes https://bugs.gnu.org/51135
NEWS
doc/coreutils.texi
src/timeout.c
tests/misc/timeout.sh