Sigterm and other signal meanings

Source: Internet
Author: User

①SIGINT terminates process interruption

ProgramThe interrupt signal is sent when you type the intr character (usually Ctrl-C.

②Sigquit creates a core file to terminate the process and generates a Core File

③Sigquit is similar to SIGINT, but it is controlled by the quit character (usually Ctrl-). A process generates a core file when it exits after receiving sigquit, which is similar to a program error signal.

④Sigkill terminate the process and kill the process

⑤Sigpipe terminates a process and writes data to an unread process pipeline.

⑥When sigalarm terminates the process Timer

7.Sigterm termination process software termination signal

BytesThe sigterm program terminate signal. Unlike sigkill, the signal can be blocked and processed. It is usually used to require the program to exit normally. Shell Command kill generates this signal by default. Sigterm is the default signal sent to a process by the kill or killall commands.

BytesSigurg ignores signal I/O emergency signals

BytesSigio can ignore the I/O on the signal Descriptor

11Sigchld ignores the signal and notifies the parent process when the child process stops or exits.

There are two signals to stop the process: sigterm and sigkill. Sigterm is relatively friendly. The process can capture this signal (it can be caught and interpreted (or ignored) by the process) and close the program as needed. Before closing the program, you can end the opened record file and complete ongoing tasks. In some cases, if the process is running and cannot be interrupted, the process can ignore this sigterm signal.

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

Original

Http://hi.baidu.com/lishifan/item/fc9fb21d812034f687ad4e33

Http://tassardge.blog.163.com/blog/static/1723017082011627522600/

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.