unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: matthew@mattleach.net, emacs-devel@gnu.org
Subject: Re: [PATCH v3] Add systemd socket launching support
Date: Thu, 31 Mar 2016 14:14:01 -0400	[thread overview]
Message-ID: <jwv4mbmplq6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <8337r6v930.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 31 Mar 2016 20:41:23 +0300")

> And I object to exposing file descriptors to Lisp, certainly when that
> is not necessary.

In other similar functionality I've seen over the years, an alternative
was to pass the fd as an additional argument on the command line, but in
any case whether it's received from the environment or the command line,
the file-descriptor to use will just be an integer, and it's already
exposed to Lisp.

So, AFAICT we just need 3 elements:
- a function to get the FD number from systemd (which we could write in
  Elisp, but is much better implemented as a call to systemd's support
  library).
- a way to create a process-object from an existing file-descriptor number.
- changes in server.el to connect the previous 2 elements together.

AFAICT, only the first part is systemd-specific, so I think it would
make sense to try and avoid having systemd-specific details leak to the
other parts.


        Stefan



  reply	other threads:[~2016-03-31 18:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-30 20:53 [PATCH v3] Add systemd socket launching support Matthew Leach
2016-03-31 12:55 ` Stefan Monnier
2016-03-31 13:31   ` Matthew Leach
2016-03-31 17:11     ` Stefan Monnier
2016-03-31 17:38       ` Matthew Leach
2016-03-31 17:41       ` Eli Zaretskii
2016-03-31 18:14         ` Stefan Monnier [this message]
2016-03-31 19:27           ` Matthew Leach
2016-03-31 19:32             ` Matthew Leach
2016-03-31 19:34           ` Eli Zaretskii
2016-03-31 21:22             ` Stefan Monnier
2016-04-01  7:10               ` Eli Zaretskii
2016-04-01 13:17                 ` Stefan Monnier
2016-04-01 13:41                   ` Eli Zaretskii
2016-04-01 18:43                     ` Stefan Monnier
2016-04-01 19:47                       ` Matthew Leach
2016-04-01 19:58                       ` Eli Zaretskii
2016-04-03  0:53     ` Live System User
2016-03-31 16:32 ` Eli Zaretskii
2016-03-31 16:51   ` Matthew Leach
2016-03-31 16:56     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv4mbmplq6.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=matthew@mattleach.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).