|
Home > Archive > Unix Programming > July 2004 > difference bet sigset, sigaction and signal
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
difference bet sigset, sigaction and signal
|
|
|
| can anyone explain what is the differece between sigaction, sigset and
signal? what are the places where a fn. can be used and where cannot be
used?
| |
| Torgny Lyon 2004-07-19, 5:57 pm |
| > can anyone explain what is the differece between sigaction, sigset and
> signal? what are the places where a fn. can be used and where cannot be
> used?
They are all used to modify the signal dispositions. signal() is the
is the old interface from V7 (which only supported unreliable signals).
sigset() is found on System V which supports reliable signals and
sigaction() is the POSIX equivalent. I guess a good advice would be to
stick to the POSIX implementation of signals where ever possible and
stay away from signal() since you never know what is hidden beneath.
--
Torgny Lyon <torgny@enterprise.hb.se>
PGP Public Key: http://enterprise.hb.se/~torgny/pgpkey.asc
|
|
|
|
|