SIGTERM、SIGSEGV、SIGINT、SIGILL、SIGABRT、SIGFPE
来自 zh.cppreference.net
| 定义于头文件 <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 指定。
参见
|
为特定信号设置信号处理程序
(函数) |
|
|
运行特定信号的信号处理程序
(函数) |
|
|
C 文档
关于
signal types
|
|