Tony Finch wrote:
> Joshua Oreman <[EMAIL PROTECTED]> wrote:
> >On Sun, 15 Jun 2003, Matthew Hagerty wrote:
> >>
> >> I'm writing a little application that needs to watch a file that another
> >> process is writing to, think 'tail -F'.
> >
> >I would say, use select(2).
> >Is there a reason this wouldn't work?
> 
> Select doesn't work with files.

The current "tail -f" uses kqueue.  The prior "tail -f" used
to open the file, and fstat() it in a 1 second sleep() loop,
looking for the file to get larger.

So your "alternative to kqueue" is to sleep loop and fstat.

-- Terry
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to