Re: exception handling around a signal handler



Gianni Mariani <gi3nospam@xxxxxxxxxx> writes:
Rainer Weikusat wrote:
..
While this is correct in itself, it doesn't fit here: The original
segementation fault happened in the child process and the question was
about a method to make s signal handler return to some other place
instead the one where the parent was interrupted, to prevent the
parent from segfaulting as well.

Look up setjmp/longjmp

It is unspecified whether longjmp() restores the signal mask,
leaves the signal mask unchanged, or restores it to its value
at the time setjmp() was called.
(SUS)
.