SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE
|
在标头
<signal.h> 定义 |
||
|
#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 |
异常终止条件,例如 abort() 所起始的 |
SIGFPE |
错误的算术运算,如除以零 |