[lug] Polling a file under linux

Kenneth D. Weinert mc at quarter-flash.com
Mon Apr 21 11:20:31 MDT 2003


I'm not sure this suggestion is useful, but can you use mmap() to 
memory map the file and just check it?

Note that I'm not real clear on how this works, but I think that
changes to the underlying file are reflected in memory.

On Mon, Apr 21, 2003 at 11:57:04AM -0500, Rob Judd wrote:
> 
> Is there a better way to poll a file to see when it changes?  (This is in
> C or C++)

-- 
/~\ The ASCII        Ken Weinert   mc at quarter-flash.com 
\ / Ribbon Campaign  303-452-6603 (V) 303-705-4258 (F)
 X  Against HTML     GnuPG: 9274F1CE  GnuPG available at http://www.gnupg.org/
/ \ Email!           1D87 3720 BB77 4489 A928  79D6 F8EC DD76 9274 F1CE
The way he carried on you'd think he wasn't linked to libclue.a

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20030421/23f1100a/attachment.pgp>


More information about the LUG mailing list