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

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!casper
  3. From: casper@fwi.uva.nl (Casper H.S. Dik)
  4. Subject: Re: What's wrong with select() ?
  5. Message-ID: <1992Nov20.083358.18475@fwi.uva.nl>
  6. Sender: news@fwi.uva.nl
  7. Nntp-Posting-Host: adam.fwi.uva.nl
  8. Organization: FWI, University of Amsterdam
  9. References: <pat.722210144@bcserv> <BxzMMJ.CvI@flatlin.ka.sub.org>
  10. Date: Fri, 20 Nov 1992 08:33:58 GMT
  11. Lines: 20
  12.  
  13. bad@flatlin.ka.sub.org (Christoph Badura) writes:
  14.  
  15. >In <pat.722210144@bcserv> pat@bcserv.wustl.edu (Niemeyer (Pat)) writes:
  16.  
  17. >>    got = select (1, &fdset, NULL, NULL, &timeout);
  18.  
  19. >From select(2):
  20.  
  21. >      nfound = select(nfds,    readfds, writefds, exceptfds, timeout)
  22. >...
  23. >      The first nfds descriptors are checked in
  24. >      each set; i.e. the descriptors from 0 through nfds-1 in the
  25. >      descriptor sets are examined.
  26.  
  27. >This means that if you want to check fd 6 with select(2) the first
  28. >parameter has to be at least 6.
  29.  
  30. 7
  31.  
  32. Casper
  33.