SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE
|
在标头
<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*/
|
||
上述每个宏都展开成有不同值的整数常量表达式,各代表发送给程序的不同信号。
| 常量 | 解释 |
SIGTERM |
发送给程序的终止请求 |
SIGSEGV |
非法内存访问(分段错误) |
SIGINT |
外部中断,通常为用户所起始 |
SIGILL |
非法程序映像,例如非法指令 |
SIGABRT |
异常终止条件,例如为 std::abort() 所起始 |
SIGFPE |
错误算术运算,例如除以零 |
注意
附加的信号名为 POSIX 所指定
参阅
| 为特定信号设置信号处理函数 (函数) |
|
| 为特定信号运行信号处理函数 (函数) |