lkml.org 
[lkml]   [1998]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectselect with 0 timeout
I'm writing the front end to a game, and I noticed that calls to
select with only readhandles and a timeout of 0 often lock up. I've
seen comments in various code that say that this is due to a bug in
the 2.1.x kernels wherein if a select() gets stopped by an interrupt
it sometimes resumes with an infinite timeout, and indeed, replacing
libc select by a wrapper around ioctl(FIONREAD) fixes the problem.
Is this a known problem? Is there a patch around? Is this libc5's
fault, or is it in the kernel?

-
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.altern.org/andrebalsa/doc/lkml-faq.html

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