sigsetjmp and siglongjmp inside signal handler
- by EpsilonVector
How do I:
sigsetjmp inside the handler and then return from the handler such that the signal will be unmasked once I siglongjmp back to this point?
In pseudo code this is sort of the function that I have:
signal_handler(){
if(sigsetjmp(env[i++]))
return;
else
siglongjmp(env[i]);
}
It's supposed to be the context switch code for user threads in Linux.