From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 01:26:08 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 DB80A16A4CE for ; Thu, 13 Nov 2003 01:26:08 -0800 (PST) Received: from t2s5.tele2.cz (t2s5.tele2.cz [213.246.64.40]) by mx1.FreeBSD.org (Postfix) with SMTP id 11A0F43FA3 for ; Thu, 13 Nov 2003 01:26:06 -0800 (PST) (envelope-from dolecek@s102-n054.tele2.cz) Received: (qmail 31085 invoked from network); 13 Nov 2003 09:25:59 -0000 Received: from s102-n054.tele2.cz (213.246.102.54) by t2s5.tele2.cz with SMTP; 13 Nov 2003 09:25:59 -0000 Received: (from dolecek@localhost) by s102-n054.tele2.cz (8.12.9p1/8.12.9/Submit) id hAD9Q3jv024862; Thu, 13 Nov 2003 10:26:03 +0100 (CET) From: Jaromir Dolecek Message-Id: <200311130926.hAD9Q3jv024862@s102-n054.tele2.cz> In-Reply-To: <20031112172750.GB14368@netbsd.org> To: Bill Studenmund Date: Thu, 13 Nov 2003 10:26:03 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL93 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: tech-kern@NetBSD.org cc: Niels Provos cc: marius@monkey.org 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 09:26:09 -0000 Bill Studenmund wrote: > I think the difference is in the default behavior. When you're at EOF, I > know that poll() will give you a read-availability event, so you'll read > the EOF. Will kqueue? 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. Jaromir -- Jaromir Dolecek http://www.NetBSD.cz/ -=- We should be mindful of the potential goal, but as the Buddhist -=- -=- masters say, ``You may notice during meditation that you -=- -=- sometimes levitate or glow. Do not let this distract you.'' -=-