From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: Re: How to run server-start only if not already running? Date: Wed, 07 Nov 2007 02:56:42 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1194425380 3107 80.91.229.12 (7 Nov 2007 08:49:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Nov 2007 08:49:40 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, rrt@sc3d.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 07 09:49:43 2007 Return-path: Envelope-to: geb-bug-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 1IpgbW-0008Ng-LH for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Nov 2007 09:49:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpgbL-0004lS-ME for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Nov 2007 03:49:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IpgbF-0004js-Cw for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2007 03:49:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IpgbD-0004hN-LR for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2007 03:49:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IpgbD-0004hH-Iy for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2007 03:49:23 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IpgbD-0001eA-8B for bug-gnu-emacs@gnu.org; Wed, 07 Nov 2007 03:49:23 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IpfmE-0004cJ-68; Wed, 07 Nov 2007 02:56:42 -0500 In-reply-to: (message from Andreas Schwab on Wed, 07 Nov 2007 00:35:47 +0100) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16935 Archived-At: (add-hook 'kill-emacs-hook (lambda () (condition-case nil (delete-file (expand-file-name server-name server-socket-dir)) (error nil)))) Is it necessary to delete a socket explicitly when the process that created it dies? If so, shouldn't server.el do this normally? It appears currently to do delete the file only when you start a server, not when you kill the Emacs. If that change were made, your hack would be simpler, and we could put into server.el too. Why not?