Date: Thu, 22 Jun 2000 13:52:06 -0500 From: Jonathan Lemon <jlemon@flugsvamp.com> To: Alexander Leidinger <Alexander@leidinger.net> Cc: current@freebsd.org, jlemon@freebsd.org Subject: Re: tail after kqueue changes Message-ID: <20000622135206.A70466@prism.flugsvamp.com> In-Reply-To: <200006221525.RAA01268@Magelan.Leidinger.net> References: <200006221525.RAA01268@Magelan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000622135206.A70466>