select(2) broken in 3.2C?

From: Ray Bellis <Ray.Bellis_at_psy.ox.ac.uk>
Date: Thu, 30 May 96 15:14:39 +0100

Does anyone know if select(2) has problems in 3.2C? I've written a
program which is using select to do blocking reads from a tty, but
for some reason select always claims to have input waiting on my
file descriptor, but then the read fails claiming that there isn't
any input waiting. My program therefore goes around and around in
a loop chewing up CPU time when it *should* be blocked.

Has anyone else seen this?

Thanks,

Ray.

--
  __  __     Computing Officer, MRC Research Centre in Brain and Behaviour,
 /_/ /_/ \/     Department of Experimental Psychology, Oxford University
/ \ / /  /  <http://www.mrc-bbc.ox.ac.uk/~rpb> <mailto:Ray.Bellis_at_psy.ox.ac.uk>
Received on Thu May 30 1996 - 16:37:51 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT