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 ms13.migadu.com with LMTPS id qFu9NIPFRGdfUgEAqHPOHw:P1 (envelope-from ) for ; Mon, 25 Nov 2024 18:44:20 +0000 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 qFu9NIPFRGdfUgEAqHPOHw (envelope-from ) for ; Mon, 25 Nov 2024 19:44:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=SWwdh1SO; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021081301 header.b=sxSyGXZS; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=fsfe.org (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732560259; 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:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=uU0/wwWPSX3d5m8Vaz1hGckRXbfrFy2vopJtHTtJsmU=; b=BKR6hZx6quGVs2l06uFdyZOvucMJuBXANd7td+YnDH4QTttdXMUSA03imgF8pnqrOv1nH6 zYipV+L+GeVzlFtVHDLFnzvzjTTclGJk/nSJGYeX667OTZLpMgjOH+AcatwePZ7fddDpeg cWdIbpoeT8z0YGKIX1+t3DUjuoerAuFkGymkwvH9Urs9vi7SazPO5n6+FBTq9TX2q6JIdk v+AaNIOhtUi9wKkCgh211um1K0Rbc+ucBnrNi4ae0Hg23VxrhiH/CGHqp0N3FB+/cTdRl4 LsHZ/P7bTD+mmQmKNL4zzHRtmW7i0Z3cqf6KHwNZ4qVUc33sB+WahYfH3CGdjw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=SWwdh1SO; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021081301 header.b=sxSyGXZS; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=fsfe.org (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732560259; a=rsa-sha256; cv=none; b=MFzPpc4SsgBMHnYRq9gOs1/0Z2BB5kq8NUmOIOUhgHNOa1Om4kFcuHFVcNk8I1NLxAzkUr /Lgl7kgBvmG/0iq6rIBa8MRE2sCUKxmivWwgPIIr3k1Hq4yqbVsJOp7GZPcU4x84hL4y7B 8AhTBPSYOUi4Xfei1bRSIrz8vmKydhRyqYybCsEsJ3XspNkGu/9lUH0/lt5LWlrAWJwmdj B8ulD0jh0/lJPCY/M7jbe7WsrQceG+d6jUFBBOpgsHwk/ZVGOtU4e0YJKSOhgnjKsnOgIx MSbSCwZSuxk3vnQRK5RNr7dE4xjKSuCQYKR3WWLY3FibRxmCkcIISQV0lJM9GQ== 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 756EA7F37F for ; Mon, 25 Nov 2024 19:44:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFe44-0002nt-RY; Mon, 25 Nov 2024 13:44:05 -0500 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 1tFe44-0002nk-1e for bug-guix@gnu.org; Mon, 25 Nov 2024 13:44:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFe43-0001K6-PI for bug-guix@gnu.org; Mon, 25 Nov 2024 13:44:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=uU0/wwWPSX3d5m8Vaz1hGckRXbfrFy2vopJtHTtJsmU=; b=SWwdh1SO7ou5p8FDhJp7ZFLMhYz4qBK4yE/hCeQWDPiGMQPlsceLUUFMC3+zBfIvAiez2sP1lG50fDdJ56KFtRGWbGahcjQDwNIhoSbjQUucNlvvrOLS4GEPbaQmrDLzVZ5miOe6x9PlT06j9iFcFZWulJKlo6krNt5M8vnwJ3PErwDG0Fydt/cUDEAfJFUNl7EvRBmgSIbvQMTJTnDCznFdxNRMPyva3NRBmQiK0p9Z2hWFjwqpLCfBu7U35j3/Ej1xPUumuoul072cFr10ZukGyqYcj2RMLaRbjkr2qY2IHlWHTeD9IkbG5TAegLhM2UrINp8HaBUUduH35iNjFQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFe42-0006I1-Kn for bug-guix@gnu.org; Mon, 25 Nov 2024 13:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#74534: [shepherd] guix-home managed shepherd shares process group with shell Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 25 Nov 2024 18:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74534 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 74534@debbugs.gnu.org Cc: Tomas Volf <~@wolfsden.cz>, Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173256019024089 (code B ref -1); Mon, 25 Nov 2024 18:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2024 18:43:10 +0000 Received: from localhost ([127.0.0.1]:40571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFe3B-0006GT-Ry for submit@debbugs.gnu.org; Mon, 25 Nov 2024 13:43:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:56438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFe39-0006GL-Ns for submit@debbugs.gnu.org; Mon, 25 Nov 2024 13:43:08 -0500 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 1tFe39-0002l3-HA for bug-guix@gnu.org; Mon, 25 Nov 2024 13:43:07 -0500 Received: from mail2.fsfe.org ([213.95.165.55]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFe37-0001Fq-Ot for bug-guix@gnu.org; Mon, 25 Nov 2024 13:43:07 -0500 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021081301; t=1732560181; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=uU0/wwWPSX3d5m8Vaz1hGckRXbfrFy2vopJtHTtJsmU=; b=sxSyGXZSN7zfqmpyiyTl5dF9rQYnV7wZR7X4d569X5Wskanw9BrfnUSF25aYUdz8Km/cCA 8TkqQTZ5Xo+8D/2ZUfUC9TzD0bnbTforI0bXUb25p8tTOv6COBw3DD8PQFKjdZs/pOXZJg OUpGhMeKiyaRY6rncCgChc7lvv8L4Zs= Date: Mon, 25 Nov 2024 19:42:55 +0100 Message-ID: <874j3vi28g.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=213.95.165.55; envelope-from=jlicht@fsfe.org; helo=mail2.fsfe.org X-Spam_score_int: -70 X-Spam_score: -7.1 X-Spam_bar: ------- X-Spam_report: (-7.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, RCVD_IN_DNSWL_HI=-5, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 0.34 X-Spam-Score: 0.34 X-Migadu-Queue-Id: 756EA7F37F X-TUID: x5sYPq+JidlT Cc'ing Tomas and Ludo, as they actually diagnosed the issue [0]. The user shepherd, as configured using guix home, runs under the same process group as the shell that initially triggered guix home's "$HOME/.guix-home/on-first-login" script. This leads to the user shepherd receiving signals that are sent to the shell, such as a SIGINT/^C, and subsequently stopping entirely. If I understand the fine folks on IRC correctly, the daemonize action of the root-service in shepherd is missing a call to (setsid). I am uncertain whether this setsid call should be made conditional or not. Kind regards, Jelle Licht [0]: https://logs.guix.gnu.org/guix/2024-11-25.log#172506