unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Christoph Ruegge <chrueg@gmail.com>
Cc: 18375@debbugs.gnu.org
Subject: bug#18375: 24.4.50; Emacs hangs X session manager logout in certain cases
Date: Tue, 02 Sep 2014 14:25:39 -0400	[thread overview]
Message-ID: <jwvlhq1evk3.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <87y4u4euu0.fsf@cxcs.de> (Christoph Ruegge's message of "Sun, 31 Aug 2014 13:56:23 +0200")

> 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





  parent reply	other threads:[~2014-09-02 18:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-31 11:56 bug#18375: 24.4.50; Emacs hangs X session manager logout in certain cases Christoph Ruegge
2014-09-01 11:40 ` Christoph Ruegge
2014-09-01 16:54   ` Christoph Ruegge
2014-09-02 18:25 ` Stefan Monnier [this message]
2014-09-02 20:56   ` Jan D.
2014-09-03  0:06     ` Stefan Monnier
2014-09-03  5:02       ` Jan Djärv
2014-09-03  9:53     ` Christoph Ruegge
2014-09-03 18:40       ` Jan Djärv
2014-09-03 18:51         ` Christoph Ruegge
2014-09-04  5:40           ` Jan Djärv

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvlhq1evk3.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=18375@debbugs.gnu.org \
    --cc=chrueg@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).