unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Best way to check file modification time?
Date: Fri, 20 Nov 2015 09:50:19 -0500	[thread overview]
Message-ID: <jwv37w0locn.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: db63cuFfackU1@mid.individual.net

> Yes, I figured that. I was just wondering if there were a standard way
> of dealing with such cases, since AFAIU it is possible to put a lock on
> a file on the OS level. But Emacs doesn't do that, right?

Locking in general is difficult, and on top of that locking in POSIX is
a big mess.  So you have to restrict the problem by considering which
other programs might interfere (and what kind of locking they might
use), as well how much effort you're willing to expend and what amount
of breakage you're willing to live with.


        Stefan




  reply	other threads:[~2015-11-20 14:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-17 11:09 Best way to check file modification time? Joost Kremers
2015-11-17 16:04 ` Barry Margolin
2015-11-17 17:12   ` Stefan Monnier
     [not found]   ` <mailman.78.1447780399.31583.help-gnu-emacs@gnu.org>
2015-11-19 14:07     ` Joost Kremers
2015-11-20 14:50       ` Stefan Monnier [this message]
2015-11-19 14:10   ` Joost Kremers

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=jwv37w0locn.fsf-monnier+gmane.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=help-gnu-emacs@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.
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).