GNU bug report logs -
#18375
24.4.50; Emacs hangs X session manager logout in certain cases
Previous Next
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
View this message in rfc822 format
> I investigated a bit and think the reason has something to do with the
> way the SM communication is tied to the first opened terminal.
Your analysis makes a lot of sense.
> If I may add, the current behaviour is rather weird to begin with. The
> SM integration's purpose is to cleanly shutdown Emacs on logout, so it
> should be tied to the entire process and not to a particular terminal.
Indeed, we have a problem there. The `emacs --daemon' is not tied to
a particular display, so it should not shutdown in response to such
SM events. OTOH, many users use "emacs --daemon" only for their
current session. So I can't think of any way to resolve this, short of
making it a config var, like in your patch.
Looking at your patch, I like the idea of exposing the session-start/end
to Elisp, but I know too little about this area to really review
your patch. Could someone else take a look at it?
Stefan
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.