SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE_C++中文网
位置:首页 > C++ 参考手册 >工具库 >程序支持工具 > SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE
| 定义于头文件 |
||
| #define SIGTERM /*implementation defined*/ |
||
| #define SIGSEGV /*implementation defined*/ |
||
| #define SIGINT /*implementation defined*/ |
||
| #define SIGILL /*implementation defined*/ |
||
| #define SIGABRT /*implementation defined*/ |
||
| #define SIGFPE /*implementation defined*/ |
||
上述每个宏都展开成有不同值的整数常量表达式,各代表发送给程序的不同信号。
| 常量 | 解释 |
SIGTERM
|
发送给程序的终止请求 |
SIGSEGV
|
非法内存访问(分段错误) |
SIGINT
|
外部中断,通常为用户所起始 |
SIGILL
|
非法程序映像,例如非法指令 |
SIGABRT
|
异常终止条件,例如为 std::abort() 所起始 |
SIGFPE
|
错误算术运算,例如除以零 |
注意
附加的信号名为 POSIX 所指定