For Programmers: Free Programming Magazines  


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
ravi

2004-07-19, 3:57 am

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, 4:00 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com