Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: revisiting history-file rewriting
- X-seq: zsh-workers 21015
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: revisiting history-file rewriting
- Date: Fri, 18 Mar 2005 18:24:22 +0000
- In-reply-to: <20050318175802.GD5500@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20050316204059.GA1298@xxxxxxxxx> <200503181049.j2IAn96p007683@xxxxxxxxxxxxxx> <20050318175802.GD5500@xxxxxxxxx>
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 <pws@xxxxxxx> 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.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author