SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE

来源:互联网 发布:蓝可儿事件真相 知乎 编辑:程序博客网 时间:2024/06/03 12:40

http://zh.cppreference.com/w/c/program/SIG_types

定义于头文件 <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错误的算术运算,例如除以零
原创粉丝点击