From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#33847: 27.0.50; emacsclient does not find server socket Date: Fri, 28 Dec 2018 07:37:52 +0100 Message-ID: References: <8a6fc59c-08b3-e274-4fb1-74674c79540a@cs.ucla.edu> <9ebcad22-2cdb-46fb-4be9-efc4ad234b6d@cs.ucla.edu> <476852d0-9cd6-a6ae-a11d-bb4d761323da@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1545980262 2742 195.159.176.226 (28 Dec 2018 06:57:42 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 28 Dec 2018 06:57:42 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 33847@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 28 07:57:37 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gcm5Q-0000Yq-3H for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Dec 2018 07:57:36 +0100 Original-Received: from localhost ([127.0.0.1]:57212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcm7W-0007YY-V7 for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 Dec 2018 01:59:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gcm7I-0007YM-JM for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 01:59:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gclnS-0005qT-PT for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 01:39:37 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gclnS-0005qM-Gt for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 01:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gclnS-0004Gx-Ct for bug-gnu-emacs@gnu.org; Fri, 28 Dec 2018 01:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Dec 2018 06:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33847-submit@debbugs.gnu.org id=B33847.154597908716347 (code B ref 33847); Fri, 28 Dec 2018 06:39:02 +0000 Original-Received: (at 33847) by debbugs.gnu.org; 28 Dec 2018 06:38:07 +0000 Original-Received: from localhost ([127.0.0.1]:39678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gclmY-0004Fb-MN for submit@debbugs.gnu.org; Fri, 28 Dec 2018 01:38:06 -0500 Original-Received: from smtp.gentoo.org ([140.211.166.183]:46084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gclmT-0004F4-Vj for 33847@debbugs.gnu.org; Fri, 28 Dec 2018 01:38:02 -0500 Original-Received: from a1i15 (host2092.kph.uni-mainz.de [134.93.134.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ulm) by smtp.gentoo.org (Postfix) with ESMTPSA id 3D075335C3D; Fri, 28 Dec 2018 06:37:55 +0000 (UTC) In-Reply-To: (Paul Eggert's message of "Wed, 26 Dec 2018 10:32:19 -0800") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:153947 Archived-At: >>>>> On Wed, 26 Dec 2018, Paul Eggert wrote: >> can't the socket be placed in ${HOME}/.emacs.d/ which is already used >> in the TCP case? The socket could be named server-, in >> order to avoid issues with NFS mounted directories. > That would cause problems when Emacs crashes or the system reboots, > since the directory wouldn't be cleaned up automatically. So although > we could add this as an option, I'm a bit leery of making it the > default. The only problem I see is that it would leave a stale socket file behind, when Emacs is not properly terminated. That file would be deleted/replaced the next time an Emacs server is started. I guess in the typical use case we are talking about a single inode. If the home directory is NFS mounted it may be one inode per machine. I think that's a small price to pay, for a solution that would be both very simple, would be available on all systems, and won't suffer from security issues.