From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; Emacs should survive a lost X connection Date: Sat, 09 Feb 2008 22:10:37 -0500 Message-ID: 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 1202613056 13113 80.91.229.12 (10 Feb 2008 03:10:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Feb 2008 03:10:56 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, hanche@math.ntnu.no, rms@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 10 04:11:18 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 1JO2b8-0000nX-B9 for ged-emacs-devel@m.gmane.org; Sun, 10 Feb 2008 04:11:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JO2af-0008DF-8R for ged-emacs-devel@m.gmane.org; Sat, 09 Feb 2008 22:10:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JO2ab-0008Bv-H5 for emacs-devel@gnu.org; Sat, 09 Feb 2008 22:10:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JO2ab-0008BK-0z for emacs-devel@gnu.org; Sat, 09 Feb 2008 22:10:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JO2aa-0008B4-O2 for emacs-devel@gnu.org; Sat, 09 Feb 2008 22:10:44 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JO2aa-0004gx-Fc for emacs-devel@gnu.org; Sat, 09 Feb 2008 22:10:44 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JO2aa-0008UB-AS for emacs-pretest-bug@gnu.org; Sat, 09 Feb 2008 22:10:44 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JO2aX-0004gD-3q for emacs-pretest-bug@gnu.org; Sat, 09 Feb 2008 22:10:44 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JO2aW-0004g5-QP; Sat, 09 Feb 2008 22:10:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAACL5rUfO+JwNdGdsb2JhbACQNgEwgSKVens X-IronPort-AV: E=Sophos;i="4.25,328,1199682000"; d="scan'208";a="13988571" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 09 Feb 2008 22:10:38 -0500 Original-Received: from pastel.home ([206.248.156.13]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id QFU75737; Sat, 09 Feb 2008 22:10:37 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 3ECB7800F; Sat, 9 Feb 2008 22:10:37 -0500 (EST) In-Reply-To: <200802090504.m1954WTM028192@sallyv1.ics.uci.edu> (Dan Nicolaescu's message of "Fri, 08 Feb 2008 21:04:22 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:88606 gmane.emacs.pretest.bugs:20972 Archived-At: >> 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? Stefan