From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id WBXRB1x9ImZpDQEAqHPOHw:P1 (envelope-from ) for ; Fri, 19 Apr 2024 16:19:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id WBXRB1x9ImZpDQEAqHPOHw (envelope-from ) for ; Fri, 19 Apr 2024 16:19:08 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=bLRnYH90; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713536347; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=IkKaKW+UrblEZAQ1Exdmv2yKADcgT7lWB4LXHY13+gQ=; b=pJERn8Q7/h9TTgzbjpUs5kha8aO8VnrS+aPW08pjJlTCGgKQwlt7RgGf02Db9vhQdoYF0o 9oCL+2hE7ZFuqqdnEoCeekjFH5svT4tqIP+Kbc9wwh+SP/cEij4vcwKtfg7Z8Gy8OmMAm5 4Rf5FpSyHw6bYT6qoqh7kKNgf5M1TAJfmtal/4tC+BTAMrdmArVFqO2XWTr8X5Z/F4umHT 62jYw1qS7rsuJQfyjSYg1LdTWUD+61KMsFn2AHNE0PVFY7qlUWTjBGDGyT1sqlwJCXdvKH YeWIgWByqzDPn01cwIxVRMCTP4J7BExw++IdC7165FYqaJC659k6BoXpF8XUEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=bLRnYH90; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713536347; a=rsa-sha256; cv=none; b=Yzymhgl71EGN6+Q6r9XRePXMkTMs51rTZEK9i0mMLoYhW1KQQsN6vtdzNEfGK+t7IQHXQG YXgohXtSqEqDAgmbPqYJAY0g2DMQCgJEYHia3njD1aIyEDgz5Kgjkruye1KCCu7DyZIoFD 3gJNXuOfHKTHnfleMSA1Obnf/YtZA8CrwAW0aU7NdH3Sv9MzGsR5VGsdMSANQQenuqeAFU i5AKw3mjcg0QgiJXUX0QwSO6+gi/cVT6QJQ9OEU6UA3ts6tehnS1rlnVMWgb4f3NP0xegX PZzrbXqRiRQhDI7BFO/EkPEeSX8fA07d/hq06YZPvShNYpE3vwJVesSPjkQ++w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D9D2F2C3C for ; Fri, 19 Apr 2024 16:19:07 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rxp4M-00016x-G6; Fri, 19 Apr 2024 10:18:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxp3o-0000bO-SD; Fri, 19 Apr 2024 10:17:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rxp3l-00068V-NP; Fri, 19 Apr 2024 10:17:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=IkKaKW+UrblEZAQ1Exdmv2yKADcgT7lWB4LXHY13+gQ=; b=bLRnYH909oVF89wE8x+N 2Ud6lvEVWfYsIt5JxP+6Nh4cV+7sU6lJ004eddmG2cbV+QiXZQU2LmEixTZ17v1j8TJMFSg18Bh3w ubklVaOeDpS9KXkJRl3LK3l5P05k9HklrhZqF/IE/OOGYPfNueL6BxEM0+MmK+rx8PZcDkWjDWMz9 OV8gLqinOGQoy+ZEiDAqEOcOA0iQAD4tjEyYrvAA/kys9xJ8HQsjc93G+bHgqg82FDKDKC4vPiZKW l35y3uBYxPveWh8SWyDA7DyWmNkE4bpXjhLYHaaMkaYjd9CZEq1hziZP/MlHkdfsb8jBfpdGrDmt7 mCjyWGUs3X4JzA==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: =?utf-8?Q?Bj=C3=B6rn?= Bidar Cc: Stefan Monnier , Nicolas Graves , "Nicolas Graves via Development of GNU Guix and the GNU System distribution." , emacs-devel@gnu.org, Andrew Tropin Subject: Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with shepherd and pid-file In-Reply-To: <87le5f2202.fsf@> (=?utf-8?Q?=22Bj=C3=B6rn?= Bidar"'s message of "Sun, 14 Apr 2024 22:11:25 +0300") References: <20240410234923.29319-2-ngraves@ngraves.fr> <875xwotg35.fsf@trop.in> <87zfu0m9ps.fsf@ngraves.fr> <87jzl22u5w.fsf@gnu.org> <87frvp4a4u.fsf@ngraves.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 1 =?utf-8?Q?Flor=C3=A9al?= an 232 de la =?utf-8?Q?R=C3=A9volution=2C?= jour de la Rose X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 19 Apr 2024 16:17:47 +0200 Message-ID: <87frvhfnck.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.07 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -9.07 X-Migadu-Queue-Id: D9D2F2C3C X-TUID: Cf+YIaMfRdZB Hi, Bj=C3=B6rn Bidar skribis: > Stefan Monnier writes: > >>> Maybe some feedback on the Emacs side about this? There are indeed very >>> few places where systemd sd_* functions are called in emacs.c, should we >>> try and re-implement them instead of using the library as is? Would that >>> be a contribution Emacs devs would be interested in? That would >>> definitely be beneficial for Emacs on Guix as highlighted by Ludo'. >> >> It's hard to tell without seeing the actual patch. >> >> But if the code is sufficiently simple, it implements a protocol that's >> well documented, and it allows us to eliminate the dependency on the >> systemd library, we might like it. > > Would that make sense on systems where systemd is used? If libsystem is > already installed it would be more convenient for the user to use the > already installed and very likely loaded libsystemd instead of > reimplementing the feature. As I wrote, in the wake of the xz backdoor, many came to the conclusion that linking against libsystemd =E2=80=9Cjust=E2=80=9D to check a couple of= environment variables (for socket activation) is hard to justify (libsystemd provides much more functionality than this bit.) > Ideally the support for other initrd system could implement a function > that is then called instead of the systemd codepath be it something > different or to reimplenent sd-notify. Maybe shepherd as something like > sd-notify of it's own? Shepherd does not implement the sd-notify protocol, but it implements socket activation, which is what Emacs currently uses AFAICS. HTH, Ludo=E2=80=99.