|
|
Program termination | |||||||||||||||||||||
| |||||||||||||||||||||
Unreachable control flow | |||||||||||||||||||||
(C++23) | |||||||||||||||||||||
Communicating with the environment | |||||||||||||||||||||
Signals | |||||||||||||||||||||
Signal types | |||||||||||||||||||||
|
| ||||||||||||||||||||
Non-local jumps | |||||||||||||||||||||
Types | |||||||||||||||||||||
Defined in header <csignal> | ||
#define SIGTERM /*implementation defined*/ | ||
#define SIGSEGV /*implementation defined*/ | ||
#define SIGINT /*implementation defined*/ | ||
#define SIGILL /*implementation defined*/ | ||
#define SIGABRT /*implementation defined*/ | ||
#define SIGFPE /*implementation defined*/ | ||
Each of the above macro constants expands to an integer constant expression with distinct values, which represent different signals sent to the program.
Constant | Explanation |
SIGTERM | termination request, sent to the program |
SIGSEGV | invalid memory access (segmentation fault) |
SIGINT | external interrupt, usually initiated by the user |
SIGILL | invalid program image, such as invalid instruction |
SIGABRT | abnormal termination condition, as is e.g. initiated bystd::abort() |
SIGFPE | erroneous arithmetic operation such as divide by zero |
Additional signal namesare specified by POSIX.
sets a signal handler for particular signal (function)[edit] | |
runs the signal handler for particular signal (function)[edit] | |
C documentation forsignal types |