From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id SKBZHcfUXWKwdQEAbAwnHQ (envelope-from ) for ; Mon, 18 Apr 2022 23:14:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cNEtHcfUXWKTLQAAauVa8A (envelope-from ) for ; Mon, 18 Apr 2022 23:14:47 +0200 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 0D9BA9828 for ; Mon, 18 Apr 2022 23:14:47 +0200 (CEST) Received: from localhost ([::1]:49048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngYhq-0000pI-9b for larch@yhetil.org; Mon, 18 Apr 2022 17:14:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngYhb-0000ov-5B for guix-devel@gnu.org; Mon, 18 Apr 2022 17:14:31 -0400 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]:36548) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ngYhZ-0004Wu-JC; Mon, 18 Apr 2022 17:14:30 -0400 Received: by mail-ed1-x541.google.com with SMTP id u18so18871283eda.3; Mon, 18 Apr 2022 14:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=8gPJhMlA73nwHhL/nnnAOdJAlfh6EIjNB4RdWvL5Aos=; b=SUti9fxvX25qeeCkHVERRdDNu/N9Io2dIOd3qDKa0bRLvkXFJTQIhq8K36YmY4Phd/ KY27D288BAcUuSEvhpNx6TYCB7QS5InAZea6izAYEioGY1fk9CGQ8Hq60moad88W2zq1 3EE9usg4FfxRpd7QGx3COjRzkXnlbuKTWFk58AiOtsnuJGy5ggv6Nv72ecLzihh+gtmO YL/3yylknWiD9hviSQJLQulH2g0hCFbZ7YgQbjCtFFH3s40KdqrvjovT4iFxLBTG9+Bq oh7oa+69h803hkxSbxcvq+r8tMY7izrhSxaV23b42A97+id2VVTnVn/Nx67DIssL4IKu 3q5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=8gPJhMlA73nwHhL/nnnAOdJAlfh6EIjNB4RdWvL5Aos=; b=Hg1GR6rEfQcyv8TzRvj/+4yju+1ZeXRKaaaWEQTpP8GxgIkuI8qLZ+cNwN7GRhXoyO tFudrJcZ785L2WKA8yG6QgU5bUXdUxMLzgQeyBti4L4xLBtUqAf1xHv85Tw1O6evUzhp dVnn6XSFgAPNcY1FBFZS0SPFXHLnG2F+S6BCWK3o64k5KLg5WHoyAYnJZqfprVQ7mADD wZfgWp75yB2BJZaoJjIvBLjGp2FEIx95mJ+YH0hKcxVzNEU2Qa2Fyr8j2KVmVQL65jM2 hvtVQO9MCmmobJ1wTKQd+FkTlJ6dnI3Cd22O5JNYh74ki2tOmY5Zmy4xwSRgenGTDqJ/ LDKw== X-Gm-Message-State: AOAM530nbgq29K7kvvm0twU7o+YlImDjwNutVcJ6ew2liGzSue0WXtMp erb9ryS+K7V5t9a4+BWOLH853Ynwr24= X-Google-Smtp-Source: ABdhPJzpw/flSSJkUhmXY5/969g9aJ2pUl6iQZD9rvACLRe4C4RFDvrlTkmQdh/dFTmsgc8WESDdCA== X-Received: by 2002:a05:6402:26d1:b0:423:fc04:8e78 with SMTP id x17-20020a05640226d100b00423fc048e78mr1001634edd.133.1650316467155; Mon, 18 Apr 2022 14:14:27 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id s11-20020a170906284b00b006e108693850sm4885581ejc.28.2022.04.18.14.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 14:14:26 -0700 (PDT) Message-ID: Subject: Re: Sockets in Shepherd, and Emacs, oh my! From: Liliana Marie Prikler To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Date: Mon, 18 Apr 2022 23:14:25 +0200 In-Reply-To: <874k2qxjmr.fsf@gnu.org> References: <8de0693f22bf19263406b448f587f6b0eb0195a0.camel@gmail.com> <87o8184qpd.fsf@gnu.org> <156738d0efb4fa5ef2af08c5a8b485b4f1044f22.camel@gmail.com> <874k2qxjmr.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::541; envelope-from=liliana.prikler@gmail.com; helo=mail-ed1-x541.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650316487; 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=8gPJhMlA73nwHhL/nnnAOdJAlfh6EIjNB4RdWvL5Aos=; b=D2m1Wr2LeZvTrCkCpa8ISAkxINftWGLEaxqcbRUreAsEC8cDF6Ct6e9HZqKELseansvQKr HdKBFcl/dPqNA9z8bRs/nl5AgltmgDmEpXdiP50le0j5gcrxYwBxrLRYGjf6G75l4d2aNC WB9D5tEuQxVvYVA9DHsAeey5+/wqaluOJPlPl9gpBshIZ17KPLqbLq0XUHJvFOUmt9WLUd ew66L1Tj2EMslCVOhi6oxZ63Lpa626MHwcdXN3YsbvhL15ntQP4zKXaFMneT3qtyz02IEz E9M0imq+zHOB2sPrE6Z4AyAIVy78cQ1mypJrDfgc7ZmwlUSyfQlW3AAftqg/8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1650316487; a=rsa-sha256; cv=none; b=O6UxtSpKbiOE6QVq5aZm/00rKJUOm1hPbBhjSRJugNxQCYDlCWeUWc6XG5itpiMK9nwWo0 SSimgluYd3Aw7EjaRlUn3ImK792d4qwkw4gBSnbTWfqd4JVjv48Ix30H+JO1vuNrv3Nu8p 9ELwl7YKuN5fIdhE4/Mgq0JoOI69V+OjJqXWDSNzuCxWsFfNcD1ji5qOdfuscUVhXVc4ZX Ms1ykWlpwQCSbr5qUXGtkgFAcm7QWZzeioKiBIl2YoLruPy5/YfJxm1y4QErda+m8zfImY 8xoGIYCVdA8GHJCWmljHi0gp/DM44KhqrLLbC4eqp6mgyta9Tv36r94uyRSMZg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SUti9fxv; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=SUti9fxv; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 0D9BA9828 X-Spam-Score: -4.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: Cph3mkRuNb1/ Am Montag, dem 18.04.2022 um 21:43 +0200 schrieb Ludovic Courtès: > Hi, > > Liliana Marie Prikler skribis: > > > Am Sonntag, dem 10.04.2022 um 22:40 +0200 schrieb Ludovic Courtès: > > [...] > > > > > > What do you mean by “claiming the socket”?  Do you have a log > > > file showing this, or at (better yet) a small reproducer?  You > > > can use ‘tests/systemd.sh’ as a starting point. > > Emacs without systemd support simply exits, because Shepherd owns > > the socket.  I think a rather simple command that exits immediately > > or after sleep 5 ought to do the trick. > > Hmm could you share such a reproducer?  I’m not sure I understand. Hmm, this test indeed works as intended on master, and when I try to invoke bad behaviour deliberately in the way I pointed out, it seems to restart the service cleanly. I haven't checked the release commit, but the emacs reproducer would be the following: A.1 Build Emacs without systemd support. A.2 Start my emacs service. A.3 Launch emacsclient (due to emacs dying, emacsclient should either die or loop forever/until a timeout, can't remember) A.4 Launch emacsclient again. B.1 Build Emacs with systemd support B.2 Start my emacs service B.3 Launch emacsclient (due to emacs supporting systemd, emacsclient should run) B.4 Use M-x kill-emacs to kill the emacs service. B.5 Launch emacsclient again (it should fail to launch) Thinking about it some more, I am probably dumb and forgot #:respawn? #t. Looking at my mail, it most definitely seems as though I did. Well, that's a lesson learned, #:respawn? is #f normally. Cheers