* Matthew Hagerty <[EMAIL PROTECTED]> [010827 18:28] wrote:
> Greetings,
>
> Is there a fast and/or efficient way to determine if a file size has
> changed without reopening the file every time? I'm writing a program that
> needs to open a file and watch it to see when data gets written to the file
> (from an external source or another part of the same program), then read
> the data to process it. I was looking at stat() but I've read that it is a
> high overhead function. Any insight would be greatly appreciated.
use kqueue.
--
-Alfred Perlstein [[EMAIL PROTECTED]]
'Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.'
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message