From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Leach Newsgroups: gmane.emacs.devel Subject: Re: [PATCH v3] Add systemd socket launching support Date: Fri, 01 Apr 2016 20:47:18 +0100 Message-ID: <87vb41un5l.fsf@mattleach.net> References: <874mbn7kmn.fsf@mattleach.net> <871t6qkc3h.fsf@mattleach.net> <8337r6v930.fsf@gnu.org> <83y48ytpah.fsf@gnu.org> <83pou9u7md.fsf@gnu.org> <83a8ldtpif.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459540065 11195 80.91.229.3 (1 Apr 2016 19:47:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2016 19:47:45 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 21:47:36 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1am52d-00014J-Dx for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2016 21:47:35 +0200 Original-Received: from localhost ([::1]:46137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1am52Z-0004Iy-IS for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2016 15:47:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1am52W-0004If-0G for emacs-devel@gnu.org; Fri, 01 Apr 2016 15:47:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1am52V-0005t0-6G for emacs-devel@gnu.org; Fri, 01 Apr 2016 15:47:27 -0400 Original-Received: from mx0.mattleach.net ([176.58.118.143]:49216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1am52P-0005sO-Hm; Fri, 01 Apr 2016 15:47:21 -0400 Original-Received: by mx0.mattleach.net (Postfix, from userid 99) id 1EB296222E; Fri, 1 Apr 2016 20:47:20 +0100 (BST) Original-Received: from matt-desktop.mattleach.net (host81-159-23-200.range81-159.btcentralplus.com [81.159.23.200]) by mx0.mattleach.net (Postfix) with ESMTPSA id 442F26222A; Fri, 1 Apr 2016 20:47:19 +0100 (BST) In-Reply-To: (Stefan Monnier's message of "Fri, 01 Apr 2016 14:43:55 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 176.58.118.143 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202575 Archived-At: Hi Stefan, Stefan Monnier writes: >>> > I'm not sure myself, but I'm not a criminal, so don't ask me about the >>> > details. I just know that exposing a handle through which someone can >>> > feed Emacs any commands they want is a bad idea. >>> Which part of my proposal exposes such a handle? >> You asked for the original version, which did that. That's the only >> proposal I understand you made, and that's what I was talking about. > > Then I don't know wheat you mean by "expose". It's already readily > available from the environment, One thing to note is that the call to sd_listen_fds(1) will remove the environment variables used by systemd to pass over the socket. Since this happens before the Lisp interpreter is invoked, this information isn't easily available from Lisp. -- Matt