Richard Levitte - VMS Whacker <[EMAIL PROTECTED]> 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
