Re: SA_RESTART and select (was: Using alarm() to break...)

From: Edgar Toernig (froese@gmx.de)
Date: Thu Mar 16 2000 - 21:53:11 EST


Andi Kleen wrote:
> Edgar Toernig <froese@gmx.de> writes:
> > In a similar case I noticed that SA_RESTART is ignored for select().
> > IMO a very strange behaviour! Is the xview clock binary really the
> > only reason???
>
> If select was restarted it would wait its timeout again.
> With a SIGALRM timer in just the right period you could make a select()
> block forever, even if it was supposed to timeout.

This sounds at least like a reason *g* But with a sane behaviour of
select regarding the timeval (return the remaining timeout as linux
normally does) this shouldn't happen.

Ciao, ET.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:20 EST