lkml.org 
[lkml]   [2000]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SA_RESTART and select (was: Using alarm() to break...)
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.058 / U:1.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site