From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14207 invoked from network); 18 Mar 2005 18:24:39 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 18 Mar 2005 18:24:39 -0000 Received: (qmail 6887 invoked from network); 18 Mar 2005 18:24:33 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 18 Mar 2005 18:24:33 -0000 Received: (qmail 11826 invoked by alias); 18 Mar 2005 18:24:30 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 21015 Received: (qmail 11812 invoked from network); 18 Mar 2005 18:24:29 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 18 Mar 2005 18:24:29 -0000 Received: (qmail 6542 invoked from network); 18 Mar 2005 18:24:29 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 18 Mar 2005 18:24:25 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 18 Mar 2005 18:22:51 +0000 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 18 Mar 2005 18:26:18 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j2IIONpS027292 for ; Fri, 18 Mar 2005 18:24:23 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j2IIONbG027288 for ; Fri, 18 Mar 2005 18:24:23 GMT Message-Id: <200503181824.j2IIONbG027288@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: revisiting history-file rewriting In-reply-to: <20050318175802.GD5500@blorf.net> References: <20050316204059.GA1298@blorf.net> <200503181049.j2IAn96p007683@news01.csr.com> <20050318175802.GD5500@blorf.net> Date: Fri, 18 Mar 2005 18:24:22 +0000 From: Peter Stephenson X-OriginalArrivalTime: 18 Mar 2005 18:26:18.0613 (UTC) FILETIME=[FA440A50:01C52BE7] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Wayne Davison wrote: > On Fri, Mar 18, 2005 at 10:49:08AM +0000, Peter Stephenson wrote: > > How would this change the result when multiple shells exit at once? > > I'm not entirely clear how the locking affects the fact that multiple > > shells want to rewrite the file in this case. > > It doesn't change that behavior except to make it safer -- if zsh is > forcefully killed it might be in the middle of writing out a new copy of > the history file instead of a truncated version of the real history > file. > > Note also that for anyone using one of the history-appending options > that I've already eliminated the multi-shell locking contention at > system shutdown time because zsh no longer tries to rewrite the history > file on a kill signal (and doesn't need to touch the history file at all > if it has no history data left to append). This sounds fine. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************