SIGABRT | Abnormal termination of a program; raised by the abort function. |
SIGFPE | A domain error in arithmetic, such as overflow, or division by zero. |
SIGILL | Attempt to execute as unexecutable function data. |
SIGINT | Interrupt; an interactive attention signal. |
SIGSEGV | An attempt to access an unavailable memory location. |
SIGTERM | A request that your program end execution. |
See raise and signal for discussion of each of these two functions.
To support these functions,
signal.h
defines the following three macros.
SIG_DFL | Used with the signal function in place of a pointer to a handler subroutine, to select the operating environment’s default handling of a signal. |
SIG_IGN | Used with the signal function in place of a pointer to a handler, to ignore a particular signal. |
SIG_ERR | Returned by the signal function in place of a pointer to a handler, to indicate that your request to set up a handler could not be honored for some reason. |