unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: Re: persistent file locks
Date: Fri, 07 Feb 2014 13:27:45 +0100	[thread overview]
Message-ID: <87wqh72jlq.fsf@web.de> (raw)
In-Reply-To: 83mwi4zljj.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> 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	other threads:[~2014-02-07 12:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-03 23:41 How to successively log stuff to a file? Michael Heerdegen
2014-02-04 12:36 ` Stephen Berman
2014-02-06  3:37   ` Michael Heerdegen
2014-02-06  3:54   ` persistent file locks (was: How to successively log stuff to a file?) Michael Heerdegen
2014-02-06  6:21     ` Eli Zaretskii
2014-02-06  6:57       ` persistent file locks Michael Heerdegen
2014-02-06  8:34         ` Eli Zaretskii
2014-02-07 12:27           ` Michael Heerdegen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqh72jlq.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).