From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Emacs should survive a lost X connection Date: Sun, 10 Feb 2008 00:03:11 -0800 Message-ID: <200802100803.m1A83Eq5026472@sallyv1.ics.uci.edu> References: <20080205.155847.56398348.hanche@math.ntnu.no> <200802051957.m15Jv8r1019258@sallyv1.ics.uci.edu> <200802052349.m15NnxSu013983@sallyv1.ics.uci.edu> <200802062007.m16K7r78005498@sallyv1.ics.uci.edu> <200802080726.m187Q5gL002961@sallyv1.ics.uci.edu> <200802090504.m1954WTM028192@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202632480 15406 80.91.229.12 (10 Feb 2008 08:34:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Feb 2008 08:34:40 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, hanche@math.ntnu.no, rms@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 10 09:35:02 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 1JO7eP-0006aY-7n for ged-emacs-devel@m.gmane.org; Sun, 10 Feb 2008 09:35:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JO7dv-0003m4-Rp for ged-emacs-devel@m.gmane.org; Sun, 10 Feb 2008 03:34:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JO7dD-0003Vm-EA for emacs-devel@gnu.org; Sun, 10 Feb 2008 03:33:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JO7d9-0003T5-8X for emacs-devel@gnu.org; Sun, 10 Feb 2008 03:33:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JO7d9-0003Su-32 for emacs-devel@gnu.org; Sun, 10 Feb 2008 03:33:43 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JO7d8-00069A-Sp for emacs-devel@gnu.org; Sun, 10 Feb 2008 03:33:42 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JO7A4-0008OO-5C for emacs-pretest-bug@gnu.org; Sun, 10 Feb 2008 03:03:40 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JO7A0-00039x-Pt for emacs-pretest-bug@gnu.org; Sun, 10 Feb 2008 03:03:39 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JO7A0-00039r-9K; Sun, 10 Feb 2008 03:03:36 -0500 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JO79z-0005pC-HN; Sun, 10 Feb 2008 03:03:35 -0500 X-ICS-MailScanner-Watermark: 1203235397.03166@XsjxuYJupWiDmPk8pHrtSw Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m1A83Eq5026472; Sun, 10 Feb 2008 00:03:14 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sat, 09 Feb 2008 22:10:37 -0500") Original-Lines: 42 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by mx20.gnu.org: Solaris 10 (beta) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: 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:88617 gmane.emacs.pretest.bugs:20978 Archived-At: Stefan Monnier writes: > >> No, the crashes are gone. But the server does not seem to know that the > >> clients have gone, it gives a warning when trying to exit because it > >> thinks that clients are still connected. > >> > >> I do not understand. When you say "server" do you mean "X server"? > > > No, I mean the emacs server, i.e. the one started by M-x server-start. > > >> Do you mean that it doesn't notice that it has been disconnected > >> from Emacs? > > > No, the emacs server keeps track of the number of emacsclients that are > > still connected, when that number is > 0 and you are doing C-x C-c it > > will warn that emacsclients are still connected > > (see server-kill-emacs-query-function) > > > In the case described here, there are no emacsclients that are still > > connected (they have died when X has died, or have been killed with > > xkill), but the server thinks otherwise. > > Actually, server.el does not keep track of a count of client, it keeps > track of actual clients directly, so we should be able to check > the client's liveness and discard the dead ones. > > I lost the beginning of this thread, could you give a recipe and > description for this problem? Sure: emacs -Q -nw -f server-start emacsclient -c -d $DISPLAY& xkill the emacsclient X11 frame then C-x C-c in the emacs -nw frame will warn about clients still being connected. Same thing when instead of using xkill, kill X11.