Subject: Re: Sane exit from a program on receipt of a signal
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 07/18/2007 09:34:13
>>> 	/* Reset to default signal handler, clear mask, raise signal */
>> So if sigaction() succeeds but sigprocmask() fails, we don't
>> raise(sig).  Would it be more useful to raise(sig) regardless of
>> whether sigprocmask() succeeds?
> You're probably right; the code could just be simplified to call the
> sig*() functions and not bother checking the return values (except
> for possibly sigaction()); the function is intended to terminate the
> process.

It is?  I thought it was intended to invoke the default action for the
signal, which may not be to terminate the process (the most plausible
example that comes to mind is SIGTSTP).

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B