Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2003 10:37:12 +0000
From:      David Laight <david@l8s.co.uk>
To:        Jaromir Dolecek <jdolecek@NetBSD.org>
Cc:        hackers@openbsd.org
Subject:   Re: kqueue, NOTE_EOF
Message-ID:  <20031113103712.B1838@snowdrop.l8s.co.uk>
In-Reply-To: <200311130926.hAD9Q3jv024862@s102-n054.tele2.cz>; from jdolecek@NetBSD.org on Thu, Nov 13, 2003 at 10:26:03AM %2B0100
References:  <20031112172750.GB14368@netbsd.org> <200311130926.hAD9Q3jv024862@s102-n054.tele2.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031113103712.B1838>