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. --- doc/coreutils.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index fa7959d01..a626b4563 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -14106,7 +14106,7 @@ or a number. Also see @xref{Signal specifications}. Exit status: @display -110 if @var{command} times out +124 if @var{command} times out 125 if @command{timeout} itself fails 126 if @var{command} is found but cannot be invoked 127 if @var{command} cannot be found -- cgit v1.2.3-54-g00ecf