Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: History file locking?



>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