From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 02:35:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34AB816A4CE for ; Thu, 13 Nov 2003 02:35:26 -0800 (PST) Received: from dial81-131-218-250.in-addr.btopenworld.com (dial81-131-218-250.in-addr.btopenworld.com [81.131.218.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BCED43FBF for ; Thu, 13 Nov 2003 02:35:23 -0800 (PST) (envelope-from dsl@l8s.co.uk) Received: from snowdrop.l8s.co.uk (localhost [IPv6:::1]) by snowdrop.l8s.co.uk (8.12.9/8.12.8) with ESMTP id hADAbHMD002187; Thu, 13 Nov 2003 10:37:18 GMT Received: (from dsl@localhost) by snowdrop.l8s.co.uk (8.12.9/8.12.9) id hADAbCN8025996; Thu, 13 Nov 2003 10:37:12 GMT Date: Thu, 13 Nov 2003 10:37:12 +0000 From: David Laight To: Jaromir Dolecek Message-ID: <20031113103712.B1838@snowdrop.l8s.co.uk> References: <20031112172750.GB14368@netbsd.org> <200311130926.hAD9Q3jv024862@s102-n054.tele2.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200311130926.hAD9Q3jv024862@s102-n054.tele2.cz>; from jdolecek@NetBSD.org on Thu, Nov 13, 2003 at 10:26:03AM +0100 cc: Bill Studenmund cc: marius@monkey.org cc: tech-kern@NetBSD.org cc: freebsd-hackers@freebsd.org cc: Niels Provos cc: hackers@openbsd.org Subject: Re: kqueue, NOTE_EOF X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2003 10:35:26 -0000 > 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