GNU bug report logs - #30421
25.3; desktop.el: Steal lock when no living "emacs" process owns it

Previous Next

Package: emacs;

Reported by: Pierre Neidhardt <ambrevar <at> gmail.com>

Date: Sun, 11 Feb 2018 09:55:02 UTC

Severity: wishlist

Found in version 25.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 30421 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Noam Postavsky <npostavs <at> users.sourceforge.net>
Cc: 30421 <at> debbugs.gnu.org, ambrevar <at> gmail.com
Subject: Re: 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 <at> users.sourceforge.net>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  30421 <at> debbugs.gnu.org
> Date: Sun, 11 Feb 2018 11:15:02 -0500
> 
> Pierre Neidhardt <ambrevar <at> 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.




This bug report was last modified 7 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.