These functions’ return value don’t imply about whether they succeeded or not. is there a way to know anyway?
These functions’ return value don’t imply about whether they succeeded or not. is there
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.
sigsetjmpcan’t fail – it just stores the caller’s context into the provided buffer.siglongjmpdoesn’t return, so there is no way to indicate failure via a return value. You must ensure that the buffer is valid before calling it.In C++, you usually can’t use these functions; calling
longjmpgives undefined behaviour if there are any automatic objects with non-trivial destructors on the call stack between there and the matching call tosetjmp.