Jan Echternach wrote:

> Yes, longjmp() is the (only?) solution if pselect() is missing.
> However, be aware that longjmp() from a signal handler can be a bit
> tricky if you have nested signal handlers. And you may want to use
> siglongjmp() instead of longjmp().

Some explanation might be in order ...

If you want to jump out of a signal handler, you probably want to use
sigsetjmp/siglongjmp, as they save and restore the signal mask.

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()).

Otherwise you would need to use sigprocmask() to explicitly unblock
the signal.

-- 
Glynn Clements <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to