From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matthew Leach Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fix `server-name' and `server-socket-dir' for bug#24218 Date: Sun, 07 Jan 2018 17:23:49 +0000 Message-ID: <87y3l9twey.fsf@mattleach.net> References: <20171229213705.20263-1-matthew@mattleach.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1515345891 2915 195.159.176.226 (7 Jan 2018 17:24:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Jan 2018 17:24:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 07 18:24:47 2018 Return-path: Envelope-to: ged-emacs-devel@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 1eYEgX-0008Mi-GF for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 18:24:37 +0100 Original-Received: from localhost ([::1]:60013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYEiW-00013r-Vs for ged-emacs-devel@m.gmane.org; Sun, 07 Jan 2018 12:26:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46962) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYEht-00012L-CA for emacs-devel@gnu.org; Sun, 07 Jan 2018 12:26:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eYEhs-0008N4-HJ for emacs-devel@gnu.org; Sun, 07 Jan 2018 12:26:01 -0500 Original-Received: from mx0.mattleach.net ([2a01:7e00::f03c:91ff:feae:885a]:54020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eYEhs-0008Mm-BB for emacs-devel@gnu.org; Sun, 07 Jan 2018 12:26:00 -0500 Original-Received: by mx0.mattleach.net (Postfix, from userid 99) id B4B056270A; Sun, 7 Jan 2018 17:25:59 +0000 (GMT) Original-Received: from matt-desktop.mattleach.net (unknown [IPv6:2a02:c7f:bc21:2100:3530:5f1b:917c:3899]) by mx0.mattleach.net (Postfix) with ESMTPSA id 2E5D262709 for ; Sun, 7 Jan 2018 17:25:59 +0000 (GMT) In-Reply-To: <20171229213705.20263-1-matthew@mattleach.net> (Matthew Leach's message of "Fri, 29 Dec 2017 21:37:05 +0000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:7e00::f03c:91ff:feae:885a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221677 Archived-At: Matthew Leach writes: > * lisp/server.el: (server-external-socket-initialised): New > (server-name): Compute server name from `get-external-sockname'. > (server-socket-dir): Compute socket dir from > `get-external-sockname'. > (server-start): Don't check for existing server when an > uninitialised external socket has been passed to Emacs. > > * src/emacs.c: (main): Obtain socket name via getsockname and pass to > `init_process_emacs'. > > * src/lisp.h: (init_process_emacs): Add second parameter. > > * src/proess.c: (external_sock_name): New. > (get-external-sockname): New. > (init_process_emacs): Set `external_sock_name' to `sockname' > parameter. If this patch looks OK, please could it be merged? I don't have write access. Many thanks, -- Matt