Subject: Re: kqueue, NOTE_EOF
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: David Laight <firstname.lastname@example.org>
Date: 11/13/2003 10:37:12
> AFAIK yes for sockets, not for file descriptor (i.e. descriptor
> open to a file on filesystem). Would poll() give you read-availability
> event when on end of file on filesystem.
IIRC poll() is required to report that files are always readable.
(So tail -f can't use poll() to avoid looping.)
This is consistent with poll reporting whether a (blocking) read
David Laight: email@example.com