Messages in this thread | | | Date | Thu, 20 May 1999 18:04:58 +0200 | From | Kurt Garloff <> | Subject | Re: select() fails... sometimes |
| |
On Tue, May 18, 1999 at 11:46:16AM -0000, mgarcia@bjssoft.es wrote: > I have a problem using select() on several handles. > It does work fine but, under some circumstances, it returns inmediately > ignoring the timeout argument, indicating that handle zero (stdin linked > to a socket via inetd) has something to read, but "read()" gets nothing at > all. > > Once it happens it doesn't stop until something is received by some other > handle. It's very annoying since the CPU load grows enormeously.
I once had a similar problem, but IIRC, it was caused by a buggy libc5. It was worked around by explicitly setting errno to zero, before calling select ().
Just an idea ... -- Kurt Garloff <garloff@suse.de> SuSE GmbH, Nürnberg, FRG Linux kernel development; SCSI driver: DC390 (tmscsim/AM53C974) [unhandled content-type:application/pgp-signature] | |