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: The emacsclient socket vs. etc/emacs.bash Date: Fri, 08 Dec 2006 22:55:26 -0500 Message-ID: References: <87odqe4jg2.fsf@pacem.orebokech.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165636558 15112 80.91.229.10 (9 Dec 2006 03:55:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2006 03:55:58 +0000 (UTC) Cc: Romain Francoise , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 09 04:55:56 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GstJa-0002u1-J8 for ged-emacs-devel@m.gmane.org; Sat, 09 Dec 2006 04:55:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GstJa-00008j-62 for ged-emacs-devel@m.gmane.org; Fri, 08 Dec 2006 22:55:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GstJG-0008Vz-4M for emacs-devel@gnu.org; Fri, 08 Dec 2006 22:55:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GstJD-0008Uh-CR for emacs-devel@gnu.org; Fri, 08 Dec 2006 22:55:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GstJD-0008Ua-9o for emacs-devel@gnu.org; Fri, 08 Dec 2006 22:55:31 -0500 Original-Received: from [209.226.175.25] (helo=tomts5-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GstJC-0004B4-Iz; Fri, 08 Dec 2006 22:55:30 -0500 Original-Received: from pastel.home ([70.55.82.193]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20061209035529.DWTV5067.tomts5-srv.bellnexxia.net@pastel.home>; Fri, 8 Dec 2006 22:55:29 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 607C08557; Fri, 8 Dec 2006 22:55:26 -0500 (EST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri\, 08 Dec 2006 20\:26\:13 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) 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:63489 Archived-At: > If I understand the recent changes to server.el correctly, Emacs > shouldn't delete the socket on exit, because it might be a socket > started by another Emacs instance and not the original socket. > Could someone explain how that can make sense? > It seems like asking for trouble not to delete the socket. - time 0: Emacs 1 starts its server. - time 1: Emacs 2 starts its server, overriding Emacs 1's server. - time 2: Emacs 1 exits: if it deletes the socket, it actually deletes Emacs 2's, not its own, so it'd be a bug But more concretely, what good would it serve to delete the socket when the server exits? Stefan