GNU bug report logs - #18375
24.4.50; Emacs hangs X session manager logout in certain cases

Previous Next

Package: emacs;

Reported by: Christoph Ruegge <chrueg <at> gmail.com>

Date: Sun, 31 Aug 2014 23:33:03 UTC

Severity: normal

Tags: patch

Found in version 24.4.50

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


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

From: Christoph Ruegge <chrueg <at> gmail.com>
To: 18375 <at> debbugs.gnu.org
Subject: Re: 24.4.50; Emacs hangs X session manager logout in certain cases
Date: Mon, 1 Sep 2014 13:40:55 +0200
> I don't know precisely why this causes the
> bug, since the SM connection is supposed to be shut down in
> x_delete_display(), but I am pretty sure that the bug happens if and
> only if the first terminal has been closed.

Adding to this, I think the reason is that the call to x_session_close() in
x_delete_display() deletes the connection's FD, but does not actually tell the
SM to close. Adding a call to SmcCloseConnection() to x_session_close()
solves the hanging behaviour for me, but of course retains the weird behaviour
of Emacs not shutting down if the first terminal was closed.




This bug report was last modified 10 years and 347 days ago.

Previous Next


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