From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#7552: 23.2; Emacs doesn't die when told to by X session manager Date: Thu, 16 Dec 2010 10:46:17 +0800 Message-ID: <87tyiebfk6.fsf@stupidchicken.com> References: <87vd391yoz.wl%greenrd@greenrd.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1292468111 8091 80.91.229.12 (16 Dec 2010 02:55:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Dec 2010 02:55:11 +0000 (UTC) Cc: 7552@debbugs.gnu.org To: Robin Green Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 16 03:55:07 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PT3zm-0001MC-9Y for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Dec 2010 03:55:06 +0100 Original-Received: from localhost ([127.0.0.1]:43175 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PT3zl-0001sk-RU for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Dec 2010 21:55:05 -0500 Original-Received: from [140.186.70.92] (port=60127 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PT3xb-0001Ub-6Q for bug-gnu-emacs@gnu.org; Wed, 15 Dec 2010 21:52:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PT3xZ-0002pK-SS for bug-gnu-emacs@gnu.org; Wed, 15 Dec 2010 21:52:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PT3xZ-0002pE-Pl for bug-gnu-emacs@gnu.org; Wed, 15 Dec 2010 21:52:49 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PT3m9-0002IB-NS; Wed, 15 Dec 2010 21:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Dec 2010 02:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7552 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7552-submit@debbugs.gnu.org id=B7552.12924672078716 (code B ref 7552); Thu, 16 Dec 2010 02:41:01 +0000 Original-Received: (at 7552) by debbugs.gnu.org; 16 Dec 2010 02:40:07 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PT3lG-0002GX-SX for submit@debbugs.gnu.org; Wed, 15 Dec 2010 21:40:07 -0500 Original-Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PT3lE-0002Fx-Ts for 7552@debbugs.gnu.org; Wed, 15 Dec 2010 21:40:05 -0500 Original-Received: from furball (bb121-6-218-24.singnet.com.sg [121.6.218.24]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id oBG2kJEY016223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 15 Dec 2010 21:46:21 -0500 Original-Received: by furball (Postfix, from userid 1000) id 83CF6161788; Wed, 15 Dec 2010 21:46:17 -0500 (EST) In-Reply-To: <87vd391yoz.wl%greenrd@greenrd.org> (Robin Green's message of "Sat, 04 Dec 2010 12:59:08 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 15 Dec 2010 21:41:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42545 Archived-At: Robin Green writes: > Until now, this would probably not matter, since normally when an X > session is stopped, all clients will be killed anyway. However, KDE 4.6 > beta 1 allows the user to stop and start subsessions called "activities" > without logging out. When the KDE session manager tells emacs to die, > it should do so - but it doesn't, and as a consequence, the following > happens: > > When you stop the activity in KDE, because the stopped activity isn't > currently visible, emacs is not visible on the display - but it still > remains running. Then if you restart the same activity, another copy of > emacs opens up, and the frame of the original emacs process reappears - > so you now have two emacs processes running, which is not what is > supposed to happen. > > The X session management specification does anticipate subsessions > being used - indeed, it gives an example of them - but as far as I know, > they have not been widely used until now, which may explain why this bug > has gone unnoticed for many years. AFAICT, there is code for Emacs to die when told to by the session manager. Could you check if Emacs is compiled with xsm support? You should have something like this in your configure log: checking X11/SM/SMlib.h usability... yes checking X11/SM/SMlib.h presence... yes checking for X11/SM/SMlib.h... yes checking for SmcOpenConnection in -lSM... yes