Linux signal (with a common signal meaning) __linux

Source: Internet
Author: User
Tags arithmetic time limit

Sighup Terminate process terminal line hangs up
SIGINT Terminate process Interrupt process
Sigquit establishes core file termination process and generates core files
Sigill establish core file illegal instruction
Sigtrap establishes core file tracking self-trapping
Sigbus Build core File Bus error
SIGSEGV Establish core file segment illegal error
SIGFPE creates a core file floating-point exception
Sigiot build core file to perform I/O self-trapping
SIGKILL Terminate process Kill process
Sigpipe terminates the process to write data to a pipe that does not read the process
Sigalarm Terminate process timer to
Sigterm terminate process software termination signal
SIGSTOP stops the process from terminating the signal.
SIGTSTP stops the process terminal to stop the signal
Sigcont ignores the signal and continues to execute a stopped process
Sigurg Ignore signal I/O emergency signal
Sigio ignores signal descriptors for I/O
SIGCHLD Ignore signal Notify parent process when child process stops or exits
Sigttou Stop process background process write terminal
Sigttin Stop process background process read Terminal
SIGXGPU Terminate process CPU time limit timeout
Sigxfsz Terminate process file length is too long
Sigwinch ignores signal window size changes
SIGPROF Terminate process statistic distribution chart with timer to time
SIGUSR1 Terminate process user-defined signal 1
SIGUSR2 Terminate process user-defined signal 2
SIGVTALRM Terminate process Virtual timer to

1 Sighup This signal at the end of the user terminal connection (normal or abnormal) issued, usually in the terminal control
At the end of the process, you are notified of each job in the same session, and they and the control terminal
no longer associated.
2) SIGINT program termination (interrupt) signal, when the user types Intr characters (usually ctrl-c) issued
3) Sigquit and SIGINT are similar, but are controlled by quit characters (usually ctrl). Process in response to received
Sigquit exit will produce a core file, in this sense similar to a program error letter
Resolution.
4) Sigill executed the illegal instruction. This is usually due to an error in the executable itself, or an attempt to execute
Data segment. This signal can also be generated when the stack overflows.
5) The Sigtrap is produced by a breakpoint instruction or other trap instruction. Used by debugger.
6) The SIGABRT program discovers errors and invokes abort when it is generated.
6) Sigiot is produced on PDP-11 by IoT instructions, as in other machines and SIGABRT.
7 Sigbus illegal address, including memory address alignment (alignment) error. Eg: access to a four word length
Integer, but its address is not a multiple of 4.
8) Sigfpe in the event of a fatal arithmetic operation error. Includes not only floating-point arithmetic errors, but also overflow
Out and all other arithmetical errors such as divisor 0.
9) SIGKILL is used to immediately end the operation of the program. This signal cannot be blocked, processed and ignored.
SIGUSR1 left to the user to use
One) SIGSEGV attempts to access memory that is not assigned to itself, or attempts to write data to a memory address that does not have write access.
SIGUSR2 left to the user to use
Sigpipe Broken Pipe
SIGALRM clock timing signal, calculated is the actual time or clock time. The alarm function uses the
Signal.
Sigterm program End (terminate) signal, unlike Sigkill, the signal can be blocked and
Processing. Usually used to require the program to exit normally. Shell command kill defaults to produce this
A signal.
SIGCHLD The parent process receives this signal when the child process ends.
Sigcont let a stop (stopped) process continue. This signal cannot be blocked. can use
A handler to allow the program to complete a specific stopped state when it is changed from
Job. For example, to display the prompt again
SIGSTOP Stop (Stopped) the execution of the process. Notice the difference between it and terminate and interrupt:
The process is not finished yet, but is paused for execution. This signal cannot be blocked, processed or ignored.
SIGTSTP stops the process from running, but the signal can be processed and ignored. User type Susp Word characters
(usually ctrl-z) send this signal
Sigttin when a background job is to read data from a user terminal, all processes in that job receive Sigttin
Signal. By default, these processes will stop executing.
Sigttou is similar to Sigttin, but is received when writing a terminal (or modifying terminal mode).
Sigurg "Emergency" data or Out-of-band data is generated when the socket is reached.
SIGXCPU exceeds the CPU time resource limit. This restriction can be read by Getrlimit/setrlimit/
Change
Sigxfsz exceeds the file size resource limit.
) SIGVTALRM virtual clock signal. Similar to SIGALRM, but calculates the CPU time consumed by the process.
Sigprof is similar to SIGALRM/SIGVTALRM, but includes the CPU time that the process uses and the system call
Time.
Sigwinch when the window size changes.
Sigio file descriptor is ready to start an input/output operation.
) SIGPWR power failure

There are two signals that can stop the process: Sigterm and Sigkill. Sigterm is more friendly, the process can capture this signal and close the program according to your needs. Before you close the program, you can end the open record file and complete the task you are doing. In some cases, if the process is working and cannot be interrupted, the process can ignore the sigterm signal.

For Sigkill signals, the process cannot be ignored. This is a "I don't care what you are doing, stop immediately" signal. If you send a sigkill signal to the process, Linux stops the process there.

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.