Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!goehring From: goehring@mentor.cc.purdue.edu (Scott Goehring) Newsgroups: comp.unix.programmer Subject: Re: Understanding select... Message-ID: Date: 24 Apr 91 14:37:57 GMT References: <533@shrike.AUSTIN.LOCKHEED.COM> <1580@integow.uucp> Sender: news@mentor.cc.purdue.edu Reply-To: goehring@mentor.cc.purdue.edu Organization: Purdue University Computing Center Lines: 21 In-reply-to: theo@integow.uucp's message of 18 Apr 91 08:40:56 GMT In article <1580@integow.uucp> theo@integow.uucp (Theo Hardendood) writes: From article <533@shrike.AUSTIN.LOCKHEED.COM>, by dcj@AUSTIN.LOCKHEED.COM (David Jacobson rimux): > I would like to use the select command to sit on a serial > device object descriptor (fd) and come off the select when any > data has come in. > > Q1: Is this possible? Yes (although I read somewhere that not all devices support select calls) correction: all devices *support* select. some, however, always report that the device is ready (disks, for example), thereby supporting select in a less-than-useful fashion. -- Help stamp out vi in our lifetime! Scott Goehring goehring@mentor.cc.purdue.edu goehring@gnu.ai.mit.edu "Then go cast an astral spell on yourself, ok?"