SIGABRT
SIGTERM,SIGSEGV,SIGINT,SIGILL,SIGABRT,SIGFPE
Defined in header | | |
---|---|---|
#define SIGTERM /*implementation defined*/ | | |
#define SIGSEGV /*implementation defined*/ | | |
#define SIGINT /*implementation defined*/ | | |
#define SIGILL /*implementation defined*/ | | |
#define SIGABRT /*implementation defined*/ | | |
#define SIGFPE /*implementation defined*/ | | |
上述宏常量中的每一个扩展为具有不同值的整数常量表达式,表示发送给程序的不同信号。
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 by std::abort() |
SIGFPE | erroneous arithmetic operation such as divide by zero |
注记
附加信号名称由POSIX指定...
另见
signal | sets a signal handler for particular signal (function) |
---|---|
raise | runs the signal handler for particular signal (function) |
C信号类型文档
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。