From owner-freebsd-current Thu Jun 22 11:47:54 2000 Delivered-To: freebsd-current@freebsd.org Received: from prism.flugsvamp.com (cb58709-a.mdsn1.wi.home.com [24.17.241.9]) by hub.freebsd.org (Postfix) with ESMTP id 6729837B63F; Thu, 22 Jun 2000 11:47:47 -0700 (PDT) (envelope-from jlemon@flugsvamp.com) Received: (from jlemon@localhost) by prism.flugsvamp.com (8.9.3/8.9.3) id NAA70818; Thu, 22 Jun 2000 13:52:06 -0500 (CDT) (envelope-from jlemon) Date: Thu, 22 Jun 2000 13:52:06 -0500 From: Jonathan Lemon To: Alexander Leidinger Cc: current@freebsd.org, jlemon@freebsd.org Subject: Re: tail after kqueue changes Message-ID: <20000622135206.A70466@prism.flugsvamp.com> References: <200006221525.RAA01268@Magelan.Leidinger.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <200006221525.RAA01268@Magelan.Leidinger.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jun 22, 2000 at 05:25:55PM +0200, Alexander Leidinger wrote: > Hi, > > I'm using the "-F" option of tail for some files which get rotated away. > > After the changes to use kqueue/kevent it didn't work as expected > anymore. tail exits after the file gets rotated. > Perhaps it didn't wait long enough to see the new file: I did a "tail > test.txt" in one terminal and a "mv test.txt; touch test.txt" in another > and I got "tail: test.txt: No such file or directory". I got a little too aggressive when following the file; it wouuld switch to the new file immediately, and get upset when it couldn't find it. I've just committed a fix which allows for a window of time where the file doesn't exist at all, which should solve the above problem. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message