From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: {file} "locked by ... pid NNN", but there is no process NNN
Date: Tue, 19 Jan 2016 20:01:53 +0200 [thread overview]
Message-ID: <83lh7lbg8e.fsf@gnu.org> (raw)
In-Reply-To: <d7102eea-0542-45fc-93d2-9946f8c63636@googlegroups.com> (message from djc on Tue, 19 Jan 2016 02:40:21 -0800 (PST))
> Date: Tue, 19 Jan 2016 02:40:21 -0800 (PST)
> From: djc <peter.kaiser@gmail.com>
> Injection-Date: Tue, 19 Jan 2016 10:40:22 +0000
>
> The situation was too complex and too intermittent to simplify easily for diagnosis, but I think I know generally what's happening: emacs is failing to delete its own lock of a file that I was working on once, but either (1) whose buffer has been killed or (2) where the lock has survived exiting and re-opening emacs.
This never happens to me, except if my system crashes in the middle of
editing a file. I have just searched my entire filesystem for
user-lock files, and found none. This is my main development machine
where a large Emacs session runs for weeks on end, in which I edit
hundreds of files. If something like that was happening even with a
small probability, I should have had several such files around. But I
don't.
> On Windows, emacs also doesn't necessarily release Windows handles of files and directories for which it no longer has any associated buffer. I've seen this repeatedly.
In what Emacs version is that, in what version of Windows, and with
what kind of filesystem (NTFS, FAT32, network)? I have here Emacs
24.5 on XPSP3 with NTFS volumes, which in this case runs for 11 days
and 9 hours, and Process Explorer shows it holds a handle for a single
directory -- my home directory -- and none of the almost 200 files
this session visits.
Of course, if you can at least describe under which circumstances
these problems tend to happen, please do. And please report that
using "M-x report-emacs-bug", not here.
Thanks.
prev parent reply other threads:[~2016-01-19 18:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-09 16:12 {file} "locked by ... pid NNN", but there is no process NNN djc
2016-01-09 16:36 ` djc
2016-01-09 16:55 ` Eli Zaretskii
2016-01-19 10:40 ` djc
2016-01-19 18:01 ` Eli Zaretskii [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=83lh7lbg8e.fsf@gnu.org \
--to=eliz@gnu.org \
--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).