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: Fri, 19 Dec 2008 09:00:20 +0100 Message-ID: <18763.21652.870274.903036@a1ihome1.kph.uni-mainz.de> References: <1229454957.21129.0.camel@localhost> <18760.56870.137654.853165@a1ihome1.kph.uni-mainz.de> <87k59yssad.fsf@cyd.mit.edu> <200812171708.mBHH8hPO008789@mothra.ics.uci.edu> <18761.21020.890676.865384@a1ihome1.kph.uni-mainz.de> <200812172251.mBHMp3ce010724@mothra.ics.uci.edu> <18762.15396.428952.119630@a1i15.kph.uni-mainz.de> <200812181914.mBIJE7qb013842@mothra.ics.uci.edu> <18762.51405.911216.76307@a1ihome1.kph.uni-mainz.de> <200812182249.mBIMnYK6014142@mothra.ics.uci.edu> <18762.58637.46084.413096@a1ihome1.kph.uni-mainz.de> <200812190046.mBJ0k7Im014390@mothra.ics.uci.edu> 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 1229674490 19699 80.91.229.12 (19 Dec 2008 08:14:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Dec 2008 08:14:50 +0000 (UTC) Cc: Chong Yidong , Diego Petteno , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 19 09:15:57 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 1LDaWa-0000RK-7S for ged-emacs-devel@m.gmane.org; Fri, 19 Dec 2008 09:15:56 +0100 Original-Received: from localhost ([127.0.0.1]:36276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDaVN-0006w6-CF for ged-emacs-devel@m.gmane.org; Fri, 19 Dec 2008 03:14:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LDaVH-0006vW-VF for emacs-devel@gnu.org; Fri, 19 Dec 2008 03:14:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LDaVF-0006v5-M4 for emacs-devel@gnu.org; Fri, 19 Dec 2008 03:14:34 -0500 Original-Received: from [199.232.76.173] (port=48927 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LDaVF-0006uv-8o for emacs-devel@gnu.org; Fri, 19 Dec 2008 03:14:33 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:55907) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LDaVE-0007LE-Rc for emacs-devel@gnu.org; Fri, 19 Dec 2008 03:14:32 -0500 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LDaHi-0000YD-I9 for emacs-devel@gnu.org; Fri, 19 Dec 2008 03:00:34 -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 mBJ80Lpc004580; Fri, 19 Dec 2008 09:00:21 +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 mBJ80Lc1004096; Fri, 19 Dec 2008 09:00:21 +0100 Original-Received: (from ulm@localhost) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.0/Submit) id mBJ80KeL004091; Fri, 19 Dec 2008 09:00:20 +0100 In-Reply-To: <200812190046.mBJ0k7Im014390@mothra.ics.uci.edu> X-Mailer: VM 8.0.2-487 under Emacs 22.2.1 (i686-pc-linux-gnu) X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:107057 Archived-At: >>>>> On Thu, 18 Dec 2008, Dan Nicolaescu wrote: >> >> > Can you try the patch at: >> >> > http://permalink.gmane.org/gmane.emacs.bugs/22201 >> >> >> >> Tested and Emacs doesn't die anymore. I find the "Connection lost ..." >> >> message in the *Messages* buffer after reconnecting. >> >> > IMO that patch is good, but it fixes the effect in this case, not the >> > cause. >> >> Hm, could you please elaborate what you mean by "effect" and "cause" >> here? > Emacs dies because something tries to call message while no frame is > open. This is the "effect". The "cause" is whatever causes that > message to be written, it probably should not happen. But "X connection lost" is precisely what happens. What could Emacs do to prevent this, if there is suddenly no X server anymore? > And indeed, even for you, it happens only for some specific window > managers. Looks like IceWM sends a WM_DELETE_WINDOW message to the X clients before it exits, while Xfce4 doesn't do this. What happens if you kill -9 your X server? Does Emacs die? Ulrich