Signal Handling: signal.h
A signal is a condition that can be reported during program execution. It is represented by a positive integer. The raise() function sends, or raises, a signal, and the signal() function sets the response to a particular signal.
The standard provides the macros listed in Table F.8 to represent possible signals; an implementation can add further values. They can be used as arguments to raise() and signal().
Macro | Description |
---|---|
SIGABRT | Abnormal termination, such as initiated by a call to abort(). |
SIGFPE | Erroneous arithmetic operation. |
SIGILL | Invalid function image (such as illegal instruction) detected. |
SIGINT | Interactive attention signal received (such as a DOS interrupt). |
SIGSEGV | Invalid access to storage. ... |
Get C Primer Plus®, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.