home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!math.fu-berlin.de!unidui!flyer!flatlin!bad
- From: bad@flatlin.ka.sub.org (Christoph Badura)
- Subject: Re: What's wrong with select() ?
- Organization: Guru Systems/Funware Department
- Date: Thu, 19 Nov 1992 23:59:07 GMT
- Message-ID: <BxzMMJ.CvI@flatlin.ka.sub.org>
- References: <pat.722210144@bcserv>
- Lines: 20
-
- In <pat.722210144@bcserv> pat@bcserv.wustl.edu (Niemeyer (Pat)) writes:
-
- > got = select (1, &fdset, NULL, NULL, &timeout);
-
- From select(2):
-
- nfound = select(nfds, readfds, writefds, exceptfds, timeout)
- ...
- The first nfds descriptors are checked in
- each set; i.e. the descriptors from 0 through nfds-1 in the
- descriptor sets are examined.
-
- This means that if you want to check fd 6 with select(2) the first
- parameter has to be at least 6.
-
- --
- Christoph Badura --- bad@flatlin.ka.sub.org
-
- AIX is a better... is a better... is a better... OpenSystem.
- IBM Rep at GUUG Symposium '92
-