From 2b815743b24c79ae63863bd0f0ffcaf822d400a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Tue, 7 Dec 2010 07:36:25 +0100 Subject: [PATCH] * xsmfns.c (smc_die_CB): Call Fkill_emacs. Fixes: debbugs:7552 --- src/ChangeLog | 4 ++++ src/xsmfns.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 3293ec08da5..9a92697b52d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-12-07 Jan Djärv + + * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552). + 2010-12-06 Chong Yidong * dispextern.h (struct it): New member overlay_strings_charpos. diff --git a/src/xsmfns.c b/src/xsmfns.c index ec5ca3b1a9f..f6260d00a56 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c @@ -298,6 +298,10 @@ smc_die_CB (smcConn, clientData) SmcConn smcConn; SmPointer clientData; { + /* This may behave badly if desktop.el tries to ask questions. */ + Fkill_emacs (Qnil); + + /* This will not be reached, but we want kill-emacs-hook to be run. */ SmcCloseConnection (smcConn, 0, 0); ice_connection_closed (); } -- 2.39.2