From e63c9825da0a71c27e68cd76c6ebf5468b36cdb1 Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Mon, 9 Jun 2008 16:10:47 +0100 Subject: timeout: use system-independent exit values Change exit values from ETIMEDOUT and ECANCELED, the values of which are system dependent, to 124 and 125 respectively. * src/timeout.c (EXIT_TIMEDOUT, EXIT_CANCELED): Define. (usage, main): Adjust. * coreutils.texi (timeout invocation): Update. * tests/misc/timeout: Adjust. --- tests/misc/timeout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/misc/timeout') diff --git a/tests/misc/timeout b/tests/misc/timeout index 7f52f6e27..8996fbce3 100755 --- a/tests/misc/timeout +++ b/tests/misc/timeout @@ -39,6 +39,6 @@ timeout 1 false && fail=1 # timeout timeout 1 sleep 2 -test $? = 110 || fail=1 +test $? = 124 || fail=1 (exit $fail); exit $fail -- cgit v1.2.3-54-g00ecf