kqueue alternative?
Joshua Oreman
oremanj at webserver.get-linux.org
Mon Jun 16 10:08:49 PDT 2003
On Mon, Jun 16, 2003 at 11:44:15AM +0100 or thereabouts, Tony Finch seemed to write:
> Joshua Oreman <oremanj at webserver.get-linux.org> 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.
Really? `man 2 select' says nothing about that. It just talks about
'file descriptors'. Now if it said 'socket descriptors' or 'non-file
file descriptors' I would understand, but I don't think that that statement
is implied by the man page. Is there something I'm missing?
-- Josh
>
> Tony.
> --
> f.a.n.finch <dot at dotat.at> http://dotat.at/
> ST DAVIDS HEAD TO COLWYN BAY, INCLUDING ST GEORGES CHANNEL: VARIABLE 2 OR 3
> BECOMING MAINLY SOUTHWEST TO WEST 2 OR 3, LOCALLY 3 OR 4. FAIR WITH ISOLATED
> SHOWERS AND SOME COASTAL MIST PATCHES. GOOD LOCALLY MODERATE OR POOR. SLIGHT.
More information about the freebsd-hackers
mailing list