GNU bug report logs - #10912
timeout: document the exit status when run with "-s KILL"

Previous Next

Package: coreutils;

Reported by: Rodrigo Campos <rodrigo <at> sdfg.com.ar>

Date: Wed, 29 Feb 2012 14:58:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Pádraig Brady <P <at> draigBrady.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#10912: closed (timeout: document the exit status when run
 with "-s KILL")
Date: Wed, 29 Feb 2012 15:46:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 29 Feb 2012 15:45:06 +0000
with message-id <4F4E4802.6080902 <at> draigBrady.com>
and subject line Re: bug#10912: timeout: document the exit status when run with "-s KILL"
has caused the debbugs.gnu.org bug report #10912,
regarding timeout: document the exit status when run with "-s KILL"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
10912: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10912
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Rodrigo Campos <rodrigo <at> sdfg.com.ar>
To: bug-coreutils <at> gnu.org
Subject: timeout: document the exit status when run with "-s KILL"
Date: Wed, 29 Feb 2012 11:49:47 -0300
[Message part 3 (text/plain, inline)]
Hi,

Please keep me in Cc: since I'm not subscribed.

I find out that the exit code when a command times out is 128+9 (when run
instede timeout :-D) rather than 124 when is run with "-s KILL". I found this by
looking at the code (well, comments :)) where is pretty clear.

This patch just adds this to the man page, so no one else checks for 124 and
finds out it doesn't exit with that code :)

I tried to copy the first line from other commits, but I might misunderstood the
style. Also, I didn't compile test it, but it seems simple enough. Sorry in
advance if the style is wrong or introduces a build issue. Please let me know
and I'll fix it :S





Thanks a lot,
Rodrigo
[0001-maint-timeout-document-the-exit-status-when-run-with.patch (text/x-diff, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Pádraig Brady <P <at> draigBrady.com>
To: Rodrigo Campos <rodrigo <at> sdfg.com.ar>
Cc: 10912-done <at> debbugs.gnu.org
Subject: Re: bug#10912: timeout: document the exit status when run with "-s
	KILL"
Date: Wed, 29 Feb 2012 15:45:06 +0000
On 02/29/2012 02:49 PM, Rodrigo Campos wrote:
> Hi,
> 
> Please keep me in Cc: since I'm not subscribed.
> 
> I find out that the exit code when a command times out is 128+9 (when run
> instede timeout :-D) rather than 124 when is run with "-s KILL". I found this by
> looking at the code (well, comments :)) where is pretty clear.
> 
> This patch just adds this to the man page, so no one else checks for 124 and
> finds out it doesn't exit with that code :)
> 
> I tried to copy the first line from other commits, but I might misunderstood the
> style. Also, I didn't compile test it, but it seems simple enough. Sorry in
> advance if the style is wrong or introduces a build issue. Please let me know
> and I'll fix it :S

Slightly adjusted and pushed.

thanks a lot,
Pádraig.


This bug report was last modified 13 years and 81 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.