Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!dsl.pitt.edu!pitt!cs.pitt.edu!field From: field@cs.pitt.edu (Gus) Newsgroups: comp.unix.questions Subject: select () on 'old' data Message-ID: <8345@pitt.UUCP> Date: 6 Aug 90 20:13:07 GMT Sender: news@pitt.UUCP Reply-To: field@cs.pitt.edu (Gus) Organization: Univ. of Pittsburgh Computer Science Lines: 20 I using select () to detect data on a file descriptor. Upon detecting info, I perform a read (). If I don't read all the data on the descriptor, and then return to select (), select will only return when _new_ data is delivered to the descriptor. Is there a way to have select () return whenever there is pending data to be read (whether or not new data has arrived). Some specifics: I'm running on a Sun-4, 4.0.3. The file I'm reading from is a serial port (canonical off, c_cc[MIN] = 1, c_cc[TIME] = 0, no echo). I would like to avoid performing a manual select (ioctl with FIONREAD) since I may be listening to lots of serial ports. Please respond via e-mail, I'll summarize if there is interest. Brian ----- field@cs.pitt.edu