From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3761 invoked from network); 16 Jul 1998 08:55:57 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 16 Jul 1998 08:55:57 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA13903; Thu, 16 Jul 1998 04:49:16 -0400 (EDT) Resent-Date: Thu, 16 Jul 1998 04:35:19 -0400 (EDT) From: Zefram Message-Id: <199807160836.JAA25520@taos.demon.co.uk> Subject: Re: rolling over high-traffic logfiles? To: schaefer@brasslantern.com (Bart Schaefer) Date: Thu, 16 Jul 1998 09:36:43 +0100 (BST) Cc: sweth@astaroth.nit.gwu.edu, zsh-users@math.gatech.edu In-Reply-To: <980715220851.ZM13527@candle.brasslantern.com> from "Bart Schaefer" at Jul 15, 98 10:08:51 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"-_Pf-.0.ZM3.6jRhr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1676 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Bart Schaefer wrote: >There's still a race condition where some process could attempt to write >to extlog during the execution of "mv", that is, between unlinking the >old extlog and renaming extlog.new to extlog. mv should use rename() to atomically replace the log file, in which case there is no race condition. -zefram