Re: Desperately missing a working "pselect()" or similar...
Alex Pennace (email@example.com)
Fri, 5 Oct 2001 19:30:49 -0400
On Sat, Oct 06, 2001 at 09:21:38AM +1000, Neil Brown wrote:
> On Friday October 5, firstname.lastname@example.org wrote:
> > The select system call doesn't return EINTR when the signal is caught
> > prior to entry into select.
> A technique I used in a similar situation once went something like:
> tv.tv_usec = 0;
> select(nfds, &readfds,&writefds,0,&tv);
> and have the signal handlers set tv.tv_sec to 0. (tv is a global
I've thought about that, but I haven't been able to find any guarantee
that there will be no user space futzing around with &tv, like a
library wrapper that copies tv to another spot in memory and invokes
the syscall with that address.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/