home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / question / 13651 < prev    next >
Encoding:
Text File  |  1992-11-19  |  959 b   |  31 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!math.fu-berlin.de!unidui!flyer!flatlin!bad
  3. From: bad@flatlin.ka.sub.org (Christoph Badura)
  4. Subject: Re: What's wrong with select() ?
  5. Organization: Guru Systems/Funware Department
  6. Date: Thu, 19 Nov 1992 23:59:07 GMT
  7. Message-ID: <BxzMMJ.CvI@flatlin.ka.sub.org>
  8. References: <pat.722210144@bcserv>
  9. Lines: 20
  10.  
  11. In <pat.722210144@bcserv> pat@bcserv.wustl.edu (Niemeyer (Pat)) writes:
  12.  
  13. >    got = select (1, &fdset, NULL, NULL, &timeout);
  14.  
  15. From select(2):
  16.  
  17.       nfound = select(nfds,    readfds, writefds, exceptfds, timeout)
  18. ...
  19.       The first nfds descriptors are checked in
  20.       each set; i.e. the descriptors from 0 through nfds-1 in the
  21.       descriptor sets are examined.
  22.  
  23. This means that if you want to check fd 6 with select(2) the first
  24. parameter has to be at least 6.
  25.  
  26. -- 
  27.                 Christoph Badura  ---  bad@flatlin.ka.sub.org
  28.  
  29. AIX is a better... is a better...  is a better... OpenSystem.
  30.                     IBM Rep at GUUG Symposium '92
  31.