all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: "Juanma Barranquero" <lekktu@gmail.com>
Cc: emacs-pretest-bug@gnu.org, 1474@emacsbugs.donarmstrong.com,
	emacs@gentoo.org
Subject: bug#1474: 23.0.60; desktop.el don't check if pid in his lock file is always in use
Date: Wed, 03 Dec 2008 09:47:54 +0100	[thread overview]
Message-ID: <87ej0pve4l.fsf@tux.homenetwork> (raw)
In-Reply-To: <f7ccd24b0812030025m96e51e0o93edb245139d7b11@mail.gmail.com> (Juanma Barranquero's message of "Wed, 3 Dec 2008 09:25:01 +0100")

"Juanma Barranquero" <lekktu@gmail.com> writes:

> On Wed, Dec 3, 2008 at 07:36, Thierry Volpiatto
> <thierry.volpiatto@gmail.com> wrote:
>
>> If emacs process number <owner> doesn't exist, the "else" block is used.
>
> Please explain: if the desktop file that Emacs finds out is locked by
> a process running in another computer, what do you want the local
> Emacs to do?

I am sorry but I don't understand why emacs would find a process on
another computer. In which case ?

I just want emacs to check if the process that is in the lock file is
own by another emacs process.

* If no emacs process with this pid is found ==> load desktop

* If an emacs process with this pid is found ==> ask (default) if we load
  desktop or not

Actually when the .emacs.desktop.lock is found, emacs lock desktop and
ask if we want to use the desktop file, even if the pid that is in the
file is no more in use by an emacs session.

Emacs should do that only if user start a second emacs session, in this
case the lock file will do his work and tell user this desktop is
already in use.

To reproduce, start emacs with (desktop-save 1) in your .emacs
open some buffers, then kill emacs with a killall or similar.
Now no emacs process exist right?
start emacs again, it will tell you an emacs process is using desktop:
thats wrong.

I hope it's clear,
thanks.

-- 
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France






  reply	other threads:[~2008-12-03  8:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-02 21:43 bug#1474: 23.0.60; desktop.el don't check if pid in his lock file is always in use Thierry Volpiatto
2008-12-02 22:39 ` Juanma Barranquero
2008-12-03  6:36   ` Thierry Volpiatto
2008-12-03  8:25     ` Juanma Barranquero
2008-12-03  8:47       ` Thierry Volpiatto [this message]
2008-12-03  9:15         ` Juanma Barranquero
2008-12-03 10:08           ` Thierry Volpiatto
2008-12-03 10:20             ` Juanma Barranquero
2008-12-03 21:27         ` Stefan Monnier
2008-12-03  9:14       ` Ulrich Mueller
2008-12-03  9:16         ` Juanma Barranquero
2008-12-02 22:52 ` Stefan Monnier
2008-12-02 23:06   ` Ulrich Mueller
2008-12-03  6:30   ` Thierry Volpiatto
2020-01-24 16:47 ` Stefan Kangas
2020-02-08 14:23   ` Stefan Kangas
2020-02-08 15:20     ` Eli Zaretskii
2020-04-27 10:34       ` Stefan Kangas
2020-04-27 14:50         ` Eli Zaretskii
2022-03-24  8:25           ` bug#1474: bug#25232: 24.4; Eliminate - Warning: Desktop file appears to be " Lars Ingebrigtsen

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=87ej0pve4l.fsf@tux.homenetwork \
    --to=thierry.volpiatto@gmail.com \
    --cc=1474@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=emacs@gentoo.org \
    --cc=lekktu@gmail.com \
    /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.