SIGINT
| Defined in header <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*/ |  |  | 
上述宏常量中的每一个扩展为具有不同值的整数常量表达式,表示发送给程序的不同信号。
| 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。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

