home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.28 / text0050.txt < prev    next >
Encoding:
Text File  |  1992-08-17  |  637 b   |  18 lines

  1. Submitted-by: eggert@twinsun.com (Paul Eggert)
  2.  
  3. libes@cme.nist.gov (Don Libes) writes:
  4.  
  5. >SVR4 supports select as well as poll, so it is tempting to consider
  6. >select the more portable of the two despite its problems.
  7.  
  8. Unfortunately, BSD and SVR4 disagree about the semantics of `select'.
  9. BSD `select' returns the number of bits that `select' sets, whereas
  10. SVR4 `select' returns the number of active file descriptors.
  11. This discrepancy can lead to subtle bugs in applications: for example,
  12. X11R5p12's mit/lib/Xt/NextEvent.c assumes the BSD behavior,
  13. so Xt sometimes loses events in busy SVR4 clients.
  14.  
  15.  
  16. Volume-Number: Volume 28, Number 52
  17.  
  18.