Subject: Re: kqueue, NOTE_EOF
To: Jaromir Dolecek <>
From: David Laight <>
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 Laight: