From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: emacs-devel@gnu.org
Subject: desktop.el and his lock file
Date: Tue, 02 Dec 2008 22:26:58 +0100 [thread overview]
Message-ID: <87ej0qfeu5.fsf@tux.homenetwork> (raw)
Hi, may be i found a bug in desktop.el:
when killing emacs brutally like with killall or something like that,
emacs when starting again, if desktop is used, use the file
.emacs.desktop.lock (default)
I think emacs should check if the pid that is in this file is always in
use.
here is the code i put after line 967 in desktop.el:
the function is desktop-read
,----
| (if (and owner
| (eq 0 (call-process-shell-command (format "ps -u %s | grep emacs | grep %d" (getenv "USER") owner)))
| .....
`----
that seem to work fine here.
May be you can provide something better.
I know there is a variable (`desktop-load-locked-desktop') to avoid
that, but if we forget to set it and we use new feature emacs --daemon,
that can hang the system. (it's what it did this afternoon for me!)
Anyway i will submit a bug also.
Thanks.
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
next reply other threads:[~2008-12-02 21:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 21:26 Thierry Volpiatto [this message]
2008-12-03 7:19 ` desktop.el and his lock file Miles Bader
2008-12-03 7:26 ` Thierry Volpiatto
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ej0qfeu5.fsf@tux.homenetwork \
--to=thierry.volpiatto@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.