home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.29 / text0013.txt < prev    next >
Encoding:
Text File  |  1992-12-26  |  1.1 KB  |  32 lines

  1. Submitted-by: karish@pangea.stanford.edu (Chuck Karish)
  2.  
  3. In article <17jq1lINN7gc@ftp.UU.NET> pdh@netcom.com (Phil Howard ) writes:
  4.  
  5. >What I cannot find or cannot figure out is how the process that has
  6. >received the EAGAIN code from [a non-blocking read() or write()] is
  7. >going to be
  8. >able to be notified of the fact that I/O is now completeable when that
  9. >condition exists, and how it can find out which file descriptor(s) has
  10. >the I/O ready (of probably 2 or more in cases where the benefit of the
  11. >asyncronous I/O is helpful).
  12. >
  13. >The mechanism I use in BSD is the select() function.
  14.  
  15. The description of [EAGAIN] in POSIX.1 is:
  16.  
  17.     [EAGAIN] Resource temporarily unavailable
  18.              This is a temporaty condition, and later calls to
  19.              the same routine may complete normally.
  20.  
  21. The portable way to find out whether the resource has become
  22. available (modem connection completed, data ready, memory available,
  23. etc.) is to wait a while, then try again.
  24. --
  25.  
  26.     Chuck Karish          karish@mindcraft.com
  27.     (415) 323-9000 x117   karish@forel.stanford.edu
  28.  
  29.  
  30. Volume-Number: Volume 29, Number 15
  31.  
  32.