emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: persistent file locks


From: Michael Heerdegen
Subject: Re: persistent file locks
Date: Fri, 07 Feb 2014 13:27:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> I don't understand why would you need to lock the file in the first
> place.  For starters, Emacs is quite capable of using the same file
> from more than one session: it closes the file as soon as write-region
> does its job.  If you want to distinguish between log entries from
> different sessions, you can have the Emacs PID be part of the entry.
>
> [...]

Ok, thanks for the background.  You've convinced me that I'd better not
use locks.  I think I'll follow your advice and just prepend each log
line with the pid.


Thanks again,

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]