[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: persistent file locks (was: How to successively log stuff to a file?
From: |
Eli Zaretskii |
Subject: |
Re: persistent file locks (was: How to successively log stuff to a file?) |
Date: |
Thu, 06 Feb 2014 08:21:54 +0200 |
> From: Michael Heerdegen <address@hidden>
> Date: Thu, 06 Feb 2014 04:54:13 +0100
>
> When the user runs multiple Emacs processes, my lib should not cause
> both processes to append to one and the same file. I want to use Emacs
> file locks for preventing that. After reading
> (info "(elisp) File Locks"), it seems that locks are handled only
> implicitly, and are removed when the associated buffer is not modified
> any more. I need a persistent lock. Is there a way to achieve this?
> Or what would you recommend to do instead?
Name the file with the Emacs PID in the file name?