您的位置:首页 > 其它

SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE

2015-03-12 16:45 232 查看
Defined in header
<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*/
Each of the above macro constants expands to an integer constant expression with distinct values, which represent different signals sent to the program.

ConstantExplanation
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 abort()
SIGFPE
erroneous arithmetic operation such as divide by zero
几种常见的崩溃类型,ios/Android通用

来源:
http://en.cppreference.com/w/c/program/SIG_types
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: