IETF-SSH archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Messages with exit-signal
Jeffrey Hutzelman <jhutz%cmu.edu@localhost> writes:
> On 15 Mar 2001, Niels Mller wrote:
>
> > 2. What should the accompanying message look like?
> >
> > Some of the alternatives are
> >
> > "Segmentation fault" (i.e. whatever strerror returns)
> > "Segmentation fault (core dumped)"
> > "Process died: Segmentation fault"
>
> You won't get these strings from strerror, because signals are not error
> numbers. You pretty much have to come up with them yourself. See, for
> example, sh.init.c in tcsh.
Ooops. I meant strsignal (or _sys_siglist on older systems).
> The " (core dumped)", on the other hand, is _not_ information the
> client can get elsewhere, since even the concept is UNIX-specific.
> IMHO, auxillary information like this should be included with the
> signal message.
There's a "boolean core dumped" field in the "exit-signal" request, so
this information can indeed be added to the message by the client.
/Niels
Home |
Main Index |
Thread Index |
Old Index