[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process o
From: |
Eli Zaretskii |
Subject: |
bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it |
Date: |
Sun, 11 Feb 2018 18:32:11 +0200 |
> From: Noam Postavsky <npostavs@users.sourceforge.net>
> Cc: Eli Zaretskii <eliz@gnu.org>, 30421@debbugs.gnu.org
> Date: Sun, 11 Feb 2018 11:15:02 -0500
>
> Pierre Neidhardt <ambrevar@gmail.com> writes:
>
> > I always run Emacs daemon. And I think the following excerpt explains
> > it all:
> >
> > (defun desktop-read (&optional dirname)
> > ...
> > (or (null desktop-load-locked-desktop)
> > (daemonp)
> > (not (y-or-n-p (format "Warning: desktop file appears to be in use
> > by PID %s.\n\
> > Using it may cause conflicts. Use it anyway? " owner))))
> >
> > Not sure why (daemonp) is here. Removing this line would solve the issue.
>
> 'git blame' brings me to Bug#11674 "desktop doesn't handle unclean
> restart under daemon mode".
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=11674
Indeed: daemon cannot usefully ask this question.
So I think desktop-load-locked-desktop is indeed the right solution to
this situation.
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Noam Postavsky, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it,
Eli Zaretskii <=
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/11
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/15
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Eli Zaretskii, 2018/02/16
- bug#30421: 25.3; desktop.el: Steal lock when no living "emacs" process owns it, Pierre Neidhardt, 2018/02/16