Programming and posix - April 2002
April 3, 2002
Solution Symposium
Page 57
hp e3000
programming
and posix
signals
• signal() & raise() are ANSI C, not POSIX.1
• Use sigaction() instead
• Signal is generated, pending, delivered
• Signal not delivered if process is executing in system
code; signal is delivered upon exit of system code
• Process can:
• Ignore the signal
• Execute a signal-handling function; process resumes
where it was interrupted
• Restore the default action of the signal