Re: select() fails... sometimes

Kurt Garloff (garloff@suse.de)
Thu, 20 May 1999 18:04:58 +0200


--7qSK/uQB79J36Y4o
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

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.
>=20
> 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. =20

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 ...
--=20
Kurt Garloff <garloff@suse.de> SuSE GmbH, N=FCrnberg, FRG
Linux kernel development; SCSI driver: DC390 (tmscsim/AM53C974)

--7qSK/uQB79J36Y4o
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3in

iQCVAwUBN0QyqhaQN/7O/JIVAQFj/AP+MXhO3ZegCqQ/xqWh2WdHuNYnZ1muIxOM
ud3fsQt3qepUfSSB2UpKiagX6I6V5k2LH6rpRuDa8sH1wooClROnbSq7VT6EfLJo
TakoxNCVHFAjWasO5K2XRdGf1FL09dpOSHY0ndEgJq3vItAIugcB7DVlOIl5cqnN
xwp62ghVP7A=
=OXgx
-----END PGP SIGNATURE-----

--7qSK/uQB79J36Y4o--

-
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/