Programming and posix getting started
28
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