Types of signals in Linux

SignalValueDescription
SIGHUP1Hangup (POSIX)
Report that user's terminal is disconnected. Signal used to report the termination of the controlling process.
SIGINT2Interrupt (ANSI)
Program interrupt. (ctrl-c)
SIGQUIT3Quit (POSIX)
Terminate process and generate core dump.
SIGILL4Illegal Instruction (ANSI)
Generally indicates that the executable file is corrupted or use of data where a pointer to a function was expected.
SIGTRAP5Trace trap (POSIX)
SIGABRT
SIGIOT
6Abort (ANSI)
IOT trap (4.2 BSD)
Process detects error and reports by calling abort
SIGBUS7BUS error (4.2 BSD)
Indicates an access to an invalid address.
SIGFPE8Floating-Point arithmetic Exception (ANSI). 
This includes division by zero and overflow.The IEEE Standard for Binary Floating-Point Arithmetic (ANSI/IEEE Std 754-1985) defines various floating-point exceptions.
SIGKILL9Kill, unblockable (POSIX)
Cause immediate program termination.
Can not be handled, blocked or ignored.
SIGUSR110User-defined signal 1
SIGSEGV11Segmentation Violation (ANSI)
Occurs when a program tries to read or write outside the memory that is allocated for it by the operating system, dereferencing a bad or NULL pointer. Indicates an invalid access to valid memory.
SIGUSR212User-defined signal 2
SIGPIPE13Broken pipe (POSIX)
Error condition like trying to write to a socket which is not connected.
SIGALRM14Alarm clock (POSIX)
Indicates expiration of a timer. Used by the alarm() function.
SIGTERM15Termination (ANSI)
This signal can be blocked, handled, and ignored. Generated by "kill" command.
SIGSTKFLT16Stack fault
SIGCHLD
SIGCLD
17Child status has changed (POSIX)
Signal sent to parent process whenever one of its child processes terminates or stops.
See the YoLinux.com Fork, exec, wait, waitpid tutorial
SIGCONT18Continue (POSIX)
Signal sent to process to make it continue.
SIGSTOP19Stop, unblockable (POSIX)
Stop a process. This signal cannot be handled, ignored, or blocked.
SIGTSTP20Keyboard stop (POSIX)
Interactive stop signal. This signal can be handled and ignored. (ctrl-z)
SIGTTIN21Background read from tty (POSIX)
SIGTTOU22Background write to tty (POSIX)
SIGURG23Urgent condition on socket (4.2 BSD)
Signal sent when "urgent" or out-of-band data arrives on a socket.
SIGXCPU24CPU limit exceeded (4.2 BSD)
SIGXFSZ25File size limit exceeded (4.2 BSD)
SIGVTALRM26Virtual Time Alarm (4.2 BSD)
Indicates expiration of a timer.
SIGPROF27Profiling alarm clock (4.2 BSD)
Indicates expiration of a timer. Use for code profiling facilities.
SIGWINCH28Window size change (4.3 BSD, Sun)
SIGIO
SIGPOLL
29I/O now possible (4.2 BSD)
Pollable event occurred (System V)
Signal sent when file descriptor is ready to perform I/O (generated by sockets)
SIGPWR30Power failure restart (System V)
SIGSYS31

Bad system call


See: /usr/include/bits/signum.h


from: http://www.yolinux.com/TUTORIALS/C++Signals.html




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值