kqueue, NOTE_EOF

David Laight david at l8s.co.uk
Thu Nov 13 02:35:26 PST 2003


> 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 at l8s.co.uk


More information about the freebsd-hackers mailing list