Re: Desperately missing a working "pselect()" or similar...

Alan Cox
2001-10-05T23:08:46Z

> The select system call doesn't return EINTR when the signal is caught
> prior to entry into select.

Your friend there is siglongjmp/sigsetjmp - the same problem was true
with old versions of alarm that did

alarm(num)
pause()

on a heavily loaded box.

Using siglongjmp cures that