Are calls to signal() done across all threads in a process? Or do you have to call signal for each signal you want to catch per thread?
Thanks,
Chenz
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.
According to this link on "Requirements of the POSIX signal model",
In other words, there can only be a single signal handler (for a particular signal) defined for the process, but you must set the signal mask in every thread.