home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / programm / 5881 < prev    next >
Encoding:
Text File  |  1992-08-31  |  917 b   |  23 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!haven.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
  3. From: louie@sayshell.umd.edu (Louis A. Mamakos)
  4. Subject: Re: Q: Using select() to detect another process appending to a file
  5. Message-ID: <1992Aug31.145742.23989@ni.umd.edu>
  6. Sender: usenet@ni.umd.edu (USENET News System)
  7. Nntp-Posting-Host: sayshell.umd.edu
  8. Organization: University of Maryland College Park
  9. References: <BtuA1H.7p0@sounds.wa.com>
  10. Date: Mon, 31 Aug 1992 14:57:42 GMT
  11. Lines: 10
  12.  
  13. In article <BtuA1H.7p0@sounds.wa.com> BrianW@SoundS.WA.com writes:
  14. >Can anyone tell me what is wrong? (perhaps select() only works on pipes which  
  15. >are emptied when read and doesn't work on real files if I only want to know  
  16. >about data appended beyond the current file position?)
  17.  
  18. You are correct here; select() only works on pipes, tty-like devices
  19. and sockets.  It doesn't do anything useful on plain files.
  20.  
  21. louie
  22.  
  23.