I have a server application which I want to protect from being stopped by any signal which I can ignore. Is there a way to ignore all possible signals at once, without setting them one by one?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes:
This does not exactly ignore the signals, but blocks them; which in practice is the same effect.
I guess there’s no need to mention that
SIGKILLandSIGSTOPcannot be blocked nor ignored in any way.For more detailed semantics, like mask inheritance rules and the like, check the man page