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




引用\[1\]: 信号的类型取决于独立变量的性质和定义信号的函数的值。引用\[2\]: 信息提取的方法取决于信号的类型和所携带信息的性质。引用\[3\]: STL为在反应式系统中指定和推理信号的时间属性提供了一个强大而表达力强的框架。它能够进行形式化分析和验证,有助于可靠和正确系统的设计和开发。 回答: 信号的结构和解释是指对信号进行分析和理解的过程。在信号处理中,信号可以是各种类型的,取决于独立变量的性质和定义信号的函数的值。不同类型的信号可以携带不同类型的信息,因此提取信息的方法也会有所不同,这取决于信号的类型和所携带信息的性质。在反应式系统中,STL提供了一个强大而表达力强的框架,用于指定和推理信号的时间属性。这使得我们能够进行形式化分析和验证,从而帮助设计和开发可靠和正确的系统。因此,结构和解释信号是一个重要的过程,它有助于我们理解和利用信号的特性和信息。 #### 引用[.reference_title] - *1* *2* [Chapter1:Signals and Signal Processing](https://blog.csdn.net/Xiao_Jie123/article/details/114310113)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Signal Temporal Logic (STL)](https://blog.csdn.net/qingmuluoyang/article/details/130828003)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值