From: Johan Vromans (jvromans@squirrel.nl)
Date: Tue May 03 2005 - 13:37:33 CEST
Richard Levitte - VMS Whacker <richard@levitte.org> writes:
> #define newhandler(sig, action) \
> if (signal (sig, SIG_IGN) != SIG_IGN) (void) signal (sig, action)
>
> Now, if someone could explain to me why that macro is used at all, I'd
> be quite grateful. Is there any reason at all not to set up a new
> handler if the previous handler is SIG_IGN? That looks very error
> prone to me...
One thing that springs to mind (but I might be wrong) is that
sometimes? ctwm is started with certain signals disabled (nohup?) and
this macro prevents these disabled signals from being reenabled?
-- Johan
This archive was generated by hypermail 2.1.4 : Wed May 04 2005 - 06:45:03 CEST