From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: error in server-running-p on M$ Date: Sun, 23 Nov 2008 00:57:13 -0500 Message-ID: References: <18728.4982.765983.511070@a1ihome1.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227420070 25172 80.91.229.12 (23 Nov 2008 06:01:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Nov 2008 06:01:10 +0000 (UTC) Cc: Eli Zaretskii , Ulrich Mueller , emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 23 07:02:09 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 1L482o-0008DH-Td for ged-emacs-devel@m.gmane.org; Sun, 23 Nov 2008 07:02:07 +0100 Original-Received: from localhost ([127.0.0.1]:44751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L481f-0007vJ-Lr for ged-emacs-devel@m.gmane.org; Sun, 23 Nov 2008 01:00:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L481a-0007vE-Lh for emacs-devel@gnu.org; Sun, 23 Nov 2008 01:00:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L481Z-0007v2-Ur for emacs-devel@gnu.org; Sun, 23 Nov 2008 01:00:50 -0500 Original-Received: from [199.232.76.173] (port=60993 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L481Z-0007uz-Rq for emacs-devel@gnu.org; Sun, 23 Nov 2008 01:00:49 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:2394) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L47yF-0005GJ-MF; Sun, 23 Nov 2008 00:57:23 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAD5/KEnO+J+z/2dsb2JhbACBbc4XgnyBHQ X-IronPort-AV: E=Sophos;i="4.33,653,1220241600"; d="scan'208";a="30190993" Original-Received: from 206-248-159-179.dsl.teksavvy.com (HELO pastel.home) ([206.248.159.179]) by ironport2-out.teksavvy.com with ESMTP; 23 Nov 2008 00:57:13 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id E305E8101; Sun, 23 Nov 2008 00:57:13 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Sun, 23 Nov 2008 06:32:00 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106007 Archived-At: >> To avoid clobbering 1's auth file. > Then, it is not really necessary to connect with 1's server. Just the > fact that there's a local Emacs with the same PID that the one saved > in the authentication file, and acting as a local server, should be > reason enough for 2 to refuse overwriting the auth file. As explained earlier, I thought it would be better to try and connect than to try and check the PID, but I now think you're right: checking the PID is probably a simpler solution (at least if stopping the server properly removes the entry from the file). >> Assuming that server-start is changed to signal an error if >> server-running-p returns non-nil, could you show us again the scenario >> where the auth file is clobbered and in what way it's clobbered? > No, I've never claimed that. Great. Stefan