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: Lost socket for detached Emacs, how to regain control? Date: Thu, 06 Nov 2008 21:15:38 -0500 Message-ID: References: <18704.27377.815630.316648@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 1226024454 25579 80.91.229.12 (7 Nov 2008 02:20:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2008 02:20:54 +0000 (UTC) Cc: Ulrich Mueller , emacs-devel@gnu.org To: "Juanma Barranquero" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 07 03:21:56 2008 connect(): Connection refused 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 1KyGyx-0002w1-Vf for ged-emacs-devel@m.gmane.org; Fri, 07 Nov 2008 03:21:56 +0100 Original-Received: from localhost ([127.0.0.1]:42693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KyGxq-0003g3-C4 for ged-emacs-devel@m.gmane.org; Thu, 06 Nov 2008 21:20:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KyGxj-0003b5-6y for emacs-devel@gnu.org; Thu, 06 Nov 2008 21:20:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KyGxi-0003Yn-3M for emacs-devel@gnu.org; Thu, 06 Nov 2008 21:20:38 -0500 Original-Received: from [199.232.76.173] (port=55370 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KyGxh-0003YF-OW for emacs-devel@gnu.org; Thu, 06 Nov 2008 21:20:37 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:47431 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KyGsv-0003cK-5w for emacs-devel@gnu.org; Thu, 06 Nov 2008 21:15:41 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtcEADkzE0lMCqyo/2dsb2JhbACBdspMg1aBEA X-IronPort-AV: E=Sophos;i="4.33,560,1220241600"; d="scan'208";a="29497437" Original-Received: from 76-10-172-168.dsl.teksavvy.com (HELO ceviche.home) ([76.10.172.168]) by ironport2-out.teksavvy.com with ESMTP; 06 Nov 2008 21:15:39 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id DF3E5703DA; Thu, 6 Nov 2008 21:15:38 -0500 (EST) In-Reply-To: (Juanma Barranquero's message of "Thu, 6 Nov 2008 16:50:37 +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:105422 Archived-At: >> That's a good alternative, tho it should check somehow that the server >> is supposed to run on the same machine. > The simplest way to do it without any networking (and so, without > risking delays) is just checking that the address in the server auth > file is 127.0.0.1. > But I have a doubt. What is the intended use of `server-running-p'? > That affects whether to check for local sockets, TCP sockets, or both. Currently it's not used (except in some people's .emacs). The intended use is in start-server to try and prevent hijacking the socket of a pre-existing server. So it's probably not less important for TCP where two servers of the same name can actually co-exist on different ports. Stefan