Linux signal Interpretation (2)

Source: Internet
Author: User

My knowledge is not deep, the following content is on-line harvesting for future use.

Signal Signal Detail Description Concise Description processing Mode
1) SIGHUP This signal is issued at the end of the user terminal connection (normal or abnormal), usually at the end of the control process of the terminal to notify the same session of the various jobs, when they are no longer associated with the control terminal. Connection Hang-off Terminate (default processing)
2) SIGINT A program termination (interrupt) signal, issued when the user types the intr character (usually ctrl-c), to inform the foreground process group that the process is terminated. Terminal Interrupt, CTRL + C to generate the signal Termination (Terminate)
3) Sigquit Similar to SIGINT, but controlled by the quit character (usually ctrl-/). The process generates a core file when it receives a sigquit exit, similar to a program error signal in this sense Terminal exit, ctrl+| termination + dump
4) Sigill An illegal instruction was executed. This is usually due to an error in the executable file itself or an attempt to execute a data segment. This signal can also be generated when a stack overflows. The process attempted to execute an illegal instruction Terminate + Dump
5) SIGTRAP Generated by a breakpoint instruction or other trap instruction. Used by debugger. Enter Breakpoint Terminate + Dump
6) SIGABRT Invokes the signal generated by the abort function. Process abnormally terminated, abort () generated Terminate + Dump
7) Sigbus Illegal address, including memory address alignment (alignment) error. For example, a four-word integer is accessed, but its address is not a multiple of 4. It differs from SIGSEGV in that the latter is triggered by illegal access to a legitimate storage address (such as Access does not belong to its own storage space or read-only storage space). Hardware or alignment errors Terminate + Dump
8) SIGFPE Emitted when a fatal arithmetic operation error occurs. This includes not only floating-point arithmetic errors, but also all other arithmetic errors such as overflow and divisor 0. Floating-Point Arithmetic exception Terminate + Dump
9) SIGKILL Used to immediately end the run of the program. This signal cannot be blocked, processed, or ignored. If an administrator discovers that a process is not terminating, try sending this signal. Stop signals that can not be captured or ignored Terminate
) SIGUSR1 Leave it to the user User-defined Signal 1 Terminate
One) SIGSEGV An attempt was made to access memory that is not assigned to itself or to write data to a memory address that does not have write permissions. Invalid memory segment Access =>segmentation error Terminate
SIGUSR2) Leave it to the user User-defined Signal 2 Terminate
Sigpipe) Pipe rupture. This signal is usually generated between interprocess communication, such as two processes with FIFO (pipeline) communication, the read pipeline is not opened or terminated unexpectedly to the pipeline to write, the writing process will receive sigpipe signal. In addition, two processes with the socket communication, the write process when the socket is written, the read process has been terminated. Writes to a pipe that is closed on the read side Terminate
SIGALRM) A clock timing signal that calculates the actual time or clock time. The alarm function uses this signal. Real timer expires, alarm () generated Terminate
SIGTERM) The end of program (terminate) signal, unlike Sigkill, is that the signal can be blocked and processed. Typically used to require the program to exit gracefully, the shell command kill generates this signal by default. If the process does not stop, we will try to Sigkill. Termination signals that can be captured or ignored Terminate
Sigstkflt) Coprocessor Stack Error Coprocessor Stack Error Terminate
SIGCHLD) The parent process receives this signal at the end of the child process. Child process has stopped and is useful for managing child processes Ignore
) Sigcont Let a stop (stopped) process continue execution. This signal cannot be blocked. You can use a handler to get the program to do certain work when the stopped state changes to continue. For example, to re-display the prompt Continue execution of the pause process (typically not used by the user) Ignore
SIGSTOP) Stop (stopped) the execution of the process. Notice the difference between it and terminate and interrupt: The process is not over yet, just pause execution. This signal cannot be blocked, processed or ignored. Stop signals that cannot be captured or ignored Stop it
SIGTSTP) Stops the process from running, but the signal can be processed and ignored. This signal is emitted when the user types Susp characters (usually ctrl-z) Terminal hangs, user-generated stop character (ctrl + Z) Stop it
) Sigttin When a background job wants to read data from the user terminal, all processes in the job receive a sigttin signal. By default, these processes stop executing. Background process Read Control terminal Stop it
Sigttou) Similar to Sigttin, but received when writing a terminal (or modifying terminal mode). Background process Write control terminal Stop it
Sigurg) When there is "emergency" data or Out-of-band data arrives at the socket. Emergency I/O not processed Ignore
) sigxcpu CPU time resource limit exceeded. This restriction can be read/changed by Getrlimit/setrlimit. Process Resource Overrun Terminate + Dump
SIGXFSZ) When the process attempts to enlarge the file so that it exceeds the file size resource limit. File Resource Overrun Terminate + Dump
SIGVTALRM) Virtual clock signal. is similar to SIGALRM, but calculates the CPU time that is consumed by the process. Virtual Timer expires Terminate
SIGPROF) Similar to SIGALRM/SIGVTALRM, but includes the CPU time used by the process and the time of the system call. Utility Timer Expiry Terminate
Sigwinch) emitted when the window size changes. Control terminal window Size change Ignore
) SIGIO The file descriptor is ready to start the input/output operation. asynchronous I/O events Terminate
SIGPWR) Power failure Power Terminate
Sigsys) An illegal system call. The process attempted to execute an invalid system call Terminate + Dump

Signal so much, in fact, mainly remember the usual number of signals is good.

Signal Signal Description
SIGINT Generated under Ctrl-c terminal
Sigabrt Generate SIGABRT Signal
Sigalrm By timers such as alarm ()
SIGCHLD Send to parent process after child process ends
Sigbus Bus error
SIGKILL Must kill the signal
Sigpipe Pipe breakage
SIGIO Registering I/O events with Fcntl
Sigquit Ctrl-\ generated under the terminal
SIGSEGV Invalid access to memory causes a common "segment error" to terminate the current process
SIGSTOP Must stop the signal, cannot be blocked, cannot be captured
SIGTERM Standard signal to terminate process

Linux signal Interpretation (2)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.