bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5552: 23.1; desktop seems not quite to understand session management


From: Jan Djärv
Subject: bug#5552: 23.1; desktop seems not quite to understand session management
Date: Sun, 02 May 2010 20:50:14 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100423 Thunderbird/3.0.4

2010-02-10 10:38, Chong Yidong skrev:
Jan Djärv<jan.h.d@swipnet.se>  writes:

When you log out, the X connection is closed and emacs exits.
However, it does not run kill-emacs-hooks.  Desktop.el depends on that
hook to clean up after itself.

Should we run kill-emacs instead of shut_down_emacs when exiting due
to X connection lost?

There was a related thread about this a year ago, regarding how Emacs
responds to SIGTERM by calling shut_down_emacs rather than kill-emacs:

   http://lists.gnu.org/archive/html/emacs-devel/2009-01/msg00530.html

The thread did not have a clear conclusion, but I'm in favor of changing
things to run kill-emacs in such situations.  But I think this is best
done after the release, unless someone can come up with a very
convincing argument otherwise.

kill-emacs is now run in Emacs 24 when X connection is lost, when SIGTERM or SIGHUP is received (Gnome session management uses SIGHUP to kill X clients).

        Jan D.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]