From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 16 10:08:49 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 41AF337B401 for ; Mon, 16 Jun 2003 10:08:49 -0700 (PDT) Received: from adsl-64-161-78-226.dsl.lsan03.pacbell.net (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 7C02D43FCB for ; Mon, 16 Jun 2003 10:08:48 -0700 (PDT) (envelope-from oremanj@adsl-64-161-78-226.dsl.lsan03.pacbell.net) Received: (qmail 57271 invoked by uid 1001); 16 Jun 2003 17:11:10 -0000 Date: Mon, 16 Jun 2003 10:11:10 -0700 From: Joshua Oreman To: Tony Finch Message-ID: <20030616171110.GC56734@webserver.get-linux.org> References: <1079.10.0.81.10.1055692530.squirrel@www.mundomateo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org Subject: Re: kqueue alternative? 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: Mon, 16 Jun 2003 17:08:49 -0000 On Mon, Jun 16, 2003 at 11:44:15AM +0100 or thereabouts, Tony Finch seemed to write: > Joshua Oreman wrote: > >On Sun, 15 Jun 2003, Matthew Hagerty wrote: > >> > >> I'm writing a little application that needs to watch a file that another > >> process is writing to, think 'tail -F'. > > > >I would say, use select(2). > >Is there a reason this wouldn't work? > > Select doesn't work with files. Really? `man 2 select' says nothing about that. It just talks about 'file descriptors'. Now if it said 'socket descriptors' or 'non-file file descriptors' I would understand, but I don't think that that statement is implied by the man page. Is there something I'm missing? -- Josh > > Tony. > -- > f.a.n.finch http://dotat.at/ > ST DAVIDS HEAD TO COLWYN BAY, INCLUDING ST GEORGES CHANNEL: VARIABLE 2 OR 3 > BECOMING MAINLY SOUTHWEST TO WEST 2 OR 3, LOCALLY 3 OR 4. FAIR WITH ISOLATED > SHOWERS AND SOME COASTAL MIST PATCHES. GOOD LOCALLY MODERATE OR POOR. SLIGHT.