From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacsclient uses obsolete "server" file on Windows Date: Thu, 12 Jun 2008 21:13:02 +0300 Message-ID: References: <484ACDD0.80209@resiak.org> <484BFAE3.1000105@resiak.org> <4850E139.6060105@resiak.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1213294421 19136 80.91.229.12 (12 Jun 2008 18:13:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2008 18:13:41 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, newsg@resiak.org To: Juanma Barranquero Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 12 20:14:24 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K6rJQ-0002bm-5z for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2008 20:14:17 +0200 Original-Received: from localhost ([127.0.0.1]:48582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6rIb-0002r7-IZ for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jun 2008 14:13:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K6rIJ-0002qm-5y for help-gnu-emacs@gnu.org; Thu, 12 Jun 2008 14:13:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K6rIG-0002o4-P2 for help-gnu-emacs@gnu.org; Thu, 12 Jun 2008 14:13:06 -0400 Original-Received: from [199.232.76.173] (port=41951 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K6rIG-0002nw-M4 for help-gnu-emacs@gnu.org; Thu, 12 Jun 2008 14:13:04 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:38754) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K6rIG-0000YI-Hh for help-gnu-emacs@gnu.org; Thu, 12 Jun 2008 14:13:04 -0400 Original-Received: from HOME-C4E4A596F7 ([80.230.28.131]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K2D00FDU4MSSAW0@i_mtaout3.012.net.il> for help-gnu-emacs@gnu.org; Thu, 12 Jun 2008 21:28:04 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54769 Archived-At: > Date: Thu, 12 Jun 2008 11:48:36 +0200 > From: "Juanma Barranquero" > Cc: help-gnu-emacs@gnu.org > > ;; Delete the associated connection file, if applicable. > ;; This is actually problematic: the file may have been overwritten by > ;; another Emacs server in the mean time, so it's not ours any more. > ;; (and (process-contact proc :server) > ;; (eq (process-status proc) 'closed) > ;; (ignore-errors (delete-file (process-get proc :server-file)))) > > though I'd love to know how likely that is, vs. problems like the one > you reported. On Windows, this can only happen if another instance of Emacs is launched. How probable is that?