sigsetjmp and siglongjmp inside signal handler
Posted
by EpsilonVector
on Stack Overflow
See other posts from Stack Overflow
or by EpsilonVector
Published on 2010-05-20T01:11:15Z
Indexed on
2010/05/20
1:20 UTC
Read the original article
Hit count: 274
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.
© Stack Overflow or respective owner