Jan Echternach wrote:
> > If you just use setjmp/longjmp the signal will remain blocked (a
> > signal is blocked while its handler is executing, unless you specified
> > the SA_NOMASK flag to sigaction()).
>
> I would not rely on this behaviour, even if Linux behaves this way.
>
> http://www.unix-systems.org/single_unix_specification_v2/xsh/longjmp.html
>
> | 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.
To put a little more perspective on this: longjmp() from a signal
handler in the middle of select() sometimes *crashes* cygwin32 (that's
not Linux). I don't know if it's portably permitted to longjmp() from
system calls, or if its a bug in cygwin32.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]