From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: Re: Emacs daemon dies at Xorg crash Date: Wed, 17 Dec 2008 12:10:30 +0100 Message-ID: <18760.56870.137654.853165@a1ihome1.kph.uni-mainz.de> References: <1229454957.21129.0.camel@localhost> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1229512261 15688 80.91.229.12 (17 Dec 2008 11:11:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 11:11:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Diego E. 'Flameeyes'" =?iso-8859-1?Q?Petten=F2?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 17 12:12:05 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LCuJu-0000br-RN for ged-emacs-devel@m.gmane.org; Wed, 17 Dec 2008 12:12:03 +0100 Original-Received: from localhost ([127.0.0.1]:35986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCuIi-0008LX-E2 for ged-emacs-devel@m.gmane.org; Wed, 17 Dec 2008 06:10:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCuIb-0008Ka-Nm for emacs-devel@gnu.org; Wed, 17 Dec 2008 06:10:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCuIZ-0008Jq-P1 for emacs-devel@gnu.org; Wed, 17 Dec 2008 06:10:40 -0500 Original-Received: from [199.232.76.173] (port=57035 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCuIZ-0008Jm-Ha for emacs-devel@gnu.org; Wed, 17 Dec 2008 06:10:39 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:51261) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LCuIZ-0000R9-2l for emacs-devel@gnu.org; Wed, 17 Dec 2008 06:10:39 -0500 Original-Received: from a1ihome1.kph.uni-mainz.de (a1ihome1.kph.uni-mainz.de [134.93.134.75]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id mBHBAUgL017676; Wed, 17 Dec 2008 12:10:30 +0100 Original-Received: from a1ihome1.kph.uni-mainz.de (localhost [127.0.0.1]) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.1) with ESMTP id mBHBAUEC017030; Wed, 17 Dec 2008 12:10:30 +0100 Original-Received: (from ulm@localhost) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.0/Submit) id mBHBAUPE017024; Wed, 17 Dec 2008 12:10:30 +0100 In-Reply-To: <1229454957.21129.0.camel@localhost> X-Mailer: VM 8.0.2-487 under Emacs 22.2.1 (i686-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:107002 Archived-At: >>>>> On Tue, 16 Dec 2008, Diego E 'Flameeyes' wrote: > Why on earth when Xorg dies, my emacs daemon dies as well? Isn't it > the point of using the daemon to NOT die when X dies and preserve > the workspace between X restarts? [CCing emacs-devel list] AFAICS Emacs only dies if there's no other connection open. I've tested it with another client open on a tty, and Emacs survived. The last thing it outputs is "Connection lost to X server `:0.0'", so it passes through x_io_error_quitter, which in turn will call x_connection_closed. In x_connection_closed there are two tests for the last terminal, where shut_down_emacs is called. Probably this should be modified for the daemon case? Ulrich