Subject: Re: kqueue, NOTE_EOF
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: David Laight <david@l8s.co.uk>
List: tech-kern
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
would return.

	David

-- 
David Laight: david@l8s.co.uk