🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #927

Re: Q: Using select() to detect another process appending to a file

#927
From: Louis A. Mamakos
Date: Mon, 31 Aug 1992 14:57
9 lines
937 bytes
In article <BtuA1H.7p0@sounds.wa.com> BrianW@SoundS.WA.com writes:
>Can anyone tell me what is wrong? (perhaps select() only works on pipes which  
>are emptied when read and doesn't work on real files if I only want to know  
>about data appended beyond the current file position?)

You are correct here; select() only works on pipes, tty-like devices
and sockets.  It doesn't do anything useful on plain files.

louie
Technical Details
Message-ID: <1992Aug31.145742.23989@ni.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
References: <BtuA1H.7p0@sounds.wa.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ni.umd.edu!sayshell.umd.edu!louie
From: louie@sayshell.umd.edu (Louis A. Mamakos)
Subject: Re: Q: Using select() to detect another process appending to a file
Message-ID: <1992Aug31.145742.23989@ni.umd.edu>
Sender: usenet@ni.umd.edu (USENET News System)
Nntp-Posting-Host: sayshell.umd.edu
Organization: University of Maryland College Park
References: <BtuA1H.7p0@sounds.wa.com>
Date: Mon, 31 Aug 1992 14:57:42 GMT
Lines: 10