What is kill-0 pid used for?

Source: Internet
Author: User

http://blog.csdn.net/pecywang/article/details/8558968

Group of colleagues talking about kill-0, talents, do not know what to do, look up the Internet, the special record as follows

The kill-0 PID does not send any signals, but the system will check for errors.
So it is often used to check whether a process exists, exists to return 0, and does not exist to return 1

Man Handbook:

The signals listed below May is available for use with kill. When known constant, numbers and default behavior are shown.
Name Num Action Description
0 0 N/A exit code indicates if a signal may sent

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.