%% "J. Grant" <[EMAIL PROTECTED]> writes:

  jg> ok, I've cc [EMAIL PROTECTED], 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 <[EMAIL PROTECTED]>          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


_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to