From owner-cvs-all Wed Mar 28 4:58:44 2001 Delivered-To: cvs-all@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id DB63637B71A; Wed, 28 Mar 2001 04:58:39 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2SCwTV36940; Wed, 28 Mar 2001 16:58:29 +0400 (MSD) (envelope-from ache) Date: Wed, 28 Mar 2001 16:58:25 +0400 From: "Andrey A. Chernov" To: David Malone Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/tail forward.c Message-ID: <20010328165823.A36803@nagual.pp.ru> References: <200103272324.f2RNOQc56458@freefall.freebsd.org> <20010328084457.A91235@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010328084457.A91235@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Wed, Mar 28, 2001 at 08:44:57AM +0100 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 28, 2001 at 08:44:57 +0100, David Malone wrote: > The problem is that you only want to seek to the end of the data > you have already displayed, not to the end of the file. Otherwise > if you are using "tail -f" and the file grows between the original > stat and the fseek you will not print the data in between. > > Can you confirm that fseeko(file_size, SEEK_SET) is actually correct? I agree. I'll back my change out. -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message