[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make signal text descriptions
From: |
Paul D. Smith |
Subject: |
Re: make signal text descriptions |
Date: |
Wed, 29 Oct 2003 16:12:25 -0500 |
%% "J. Grant" <address@hidden> writes:
jg> ok, I've cc address@hidden, so maybe someone can tell me if
jg> signal numbers are decoded. Would you include this internally? or
jg> use a lib etc?
We use the system service to translate the code if the system provides
it (many UNIX systems provide strsignal() for example). If not we have
a predefined set of signals we translate, but if the signal is not a
member of that predefined list it's not translated.
>> In the example you give here, for example, the invoked program
>> exited with a -1 exit code, which is not a valid errno value.
jg> Is there any reason this is printed as unsigned char then? Would
jg> not -1 be more appropriate if that was what it was originally?
Because the POSIX standard defines the exit code of an application to be
an 8-bit value, not a signed integer.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist
- make signal text descriptions, J. Grant, 2003/10/28
- Re: make signal text descriptions, Paul D. Smith, 2003/10/28
- Re: make signal text descriptions, J. Grant, 2003/10/29
- Re: make signal text descriptions,
Paul D. Smith <=
- Re: make signal text descriptions, J. Grant, 2003/10/29
- Re: make signal text descriptions, Earnie Boyd, 2003/10/29
- Re: make signal text descriptions, J. Grant, 2003/10/29
- Re: make signal text descriptions, Eli Zaretskii, 2003/10/30
- Re: make signal text descriptions, Earnie Boyd, 2003/10/30
- Re: make signal text descriptions, Eli Zaretskii, 2003/10/29
- Re: make signal text descriptions, J. Grant, 2003/10/29