Linux-kernel mailing list archive 1998-31,: select with 0 timeout

# select with 0 timeout

maciej h babinski (mhbabins@students.uiuc.edu)
Thu, 6 Aug 1998 20:10:47 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: H. Peter Anvin: "Re: Idea to make a kickass TCP read!"
- Previous message: Mike : "Re: SUID scripts?"

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

- Next message: H. Peter Anvin: "Re: Idea to make a kickass TCP read!"
- Previous message: Mike : "Re: SUID scripts?"