tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Why no SIGINFO?



>> +    (void)signal(SIGINFO, progress);
> I'm not sure if others will agree, but I think that sigaction(2) is
> prefered to select(3) nowadays.

I assume you meant signal(3), not select(3); preferring sigaction to
select is a bit like preferring sqrt to strlen.  That said:

My understanding is probably incomplete, but I'd say that this is only
partially true.  sigaction() is the more general of the two - it offers
facilities signal() doesn't - but, where the capabilities of signal()
are sufficient to the task, I see no reason to avoid it.

/~\ The ASCII                             Mouse
\ / Ribbon Campaign
 X  Against HTML                mouse%rodents-montreal.org@localhost
/ \ Email!           7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index