Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: History file locking?
- X-seq: zsh-workers 906
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: hzoli@xxxxxxxxxx (Zoltan Hidvegi)
- Subject: Re: History file locking?
- Date: Wed, 10 Apr 1996 13:50:13 +0100 (BST)
- Cc: A.Main@xxxxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199604101241.OAA16421@xxxxxxxxxxxxx> from "Zoltan Hidvegi" at Apr 10, 96 02:41:39 pm
>Also things get quite complicated when the history file is on an NFS volume.
>Probaly some dot-locking method similar to the one used by sendmail & co
>should be used.
I wouldn't bother -- it's only a history file. lockf() (and fcntl())
locking work over NFS anyway; it's only flock() that doesn't. O_EXCL
isn't reliable over NFS, which makes .lock locking rather pointless.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author