From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#11741: 24.1; Daemon Dies When X Exits Date: Tue, 19 Jun 2012 12:18:01 -0400 Message-ID: References: <87wr33igvm.fsf@volunteer.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1340122735 20496 80.91.229.3 (19 Jun 2012 16:18:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 16:18:55 +0000 (UTC) Cc: 11741@debbugs.gnu.org To: woddfellow2 Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 19 18:18:52 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sh18i-0006dW-5p for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jun 2012 18:18:48 +0200 Original-Received: from localhost ([::1]:56094 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh18i-0005km-4K for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jun 2012 12:18:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh18b-0005k4-Vh for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2012 12:18:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sh18a-0007S6-2l for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2012 12:18:41 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39222) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sh18Z-0007Rv-Vc for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2012 12:18:39 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sh1Bp-0002wv-HE for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2012 12:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Jun 2012 16:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11741 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11741-submit@debbugs.gnu.org id=B11741.134012288911297 (code B ref 11741); Tue, 19 Jun 2012 16:22:01 +0000 Original-Received: (at 11741) by debbugs.gnu.org; 19 Jun 2012 16:21:29 +0000 Original-Received: from localhost ([127.0.0.1]:48768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sh1BI-0002w9-Q7 for submit@debbugs.gnu.org; Tue, 19 Jun 2012 12:21:29 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:45151) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sh1BF-0002w2-Ri for 11741@debbugs.gnu.org; Tue, 19 Jun 2012 12:21:27 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Sh17y-0000HU-2K; Tue, 19 Jun 2012 12:18:02 -0400 X-Spook: clones MD4 Janet Reno IDEA Adriatic BLU-114/B top secret X-Ran: X(m|OJAfIdpVQ'1kS$1:'YM$<0ZrbMM\,Ca|B2ve}@[d/2K]Ns]yHnARJw(DnrDpQ%V/+> X-Hue: yellow X-Attribution: GM In-Reply-To: <87wr33igvm.fsf@volunteer.i-did-not-set--mail-host-address--so-tickle-me> (woddfellow2@gmail.com's message of "Tue, 19 Jun 2012 08:13:49 -0500") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:61116 Archived-At: woddfellow2 wrote: > If I start an Emacs daemon, even outside of X, then open an emacsclient > frame in X, then C-x 5 0, then exit X, the daemon dies. This happens > even with emacs -Q. This appears to e a regression, as Emacs 23 did not > have this problem: > > Connection lost to X server `:0' > When compiled with GTK, Emacs cannot recover from X disconnects. > This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715 > For details, see etc/PROBLEMS. The above message seems pretty clear to me. Here's what the etc/PROBLEMS entry says: ** When Emacs is compiled with Gtk+, closing a display kills Emacs. There is a long-standing bug in GTK that prevents it from recovering from disconnects: http://bugzilla.gnome.org/show_bug.cgi?id=85715. Thus, for instance, when Emacs is run as a server on a text terminal, and an X frame is created, and the X server for that frame crashes or exits unexpectedly, Emacs must exit to prevent a GTK error that would result in an endless loop. If you need Emacs to be able to recover from closing displays, compile it with the Lucid toolkit instead of GTK.