From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 8KxROazHRGfCXgAAe85BDQ:P1 (envelope-from ) for ; Mon, 25 Nov 2024 18:53:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8KxROazHRGfCXgAAe85BDQ (envelope-from ) for ; Mon, 25 Nov 2024 19:53:33 +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="Y2IJ/641"; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021081301 header.b=gSyIcQ03; 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=1732560812; 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:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=jNszJIENlDBYXCoV8tip/MBiey7xcdhV7yJTQshIavY=; b=TDuRukBghTmwxouBOdho15E9kMr/Md0bZPpvi8CNPudwPlNakfhaiCzzQVgOA2kSz+dmA9 1cc9LpS/H/RXc/S8R+UB0EopTNELlwhOLyxBMUP8Q9cr/v8bBdkQ+OiRRrgO6V5RoUA8te 6RJT67k3mLgjwgxu6JK5M1BLfyCZtp/H3Lm7D6JHUY6EmQUEStokDHLA+XzM5MYAkJAAR2 mrcBmep2RpwqixsiJohLrpA4RlDOkn/4R6FNEMh8PFjgk5IE7dTrZ3OQg2ZFFskcoeiElt pdUeuD4BAvE2FpkWVeb36BdBjVm1OPM9zo7MtEYUYfVu4LhzjkJR4Rv+ddE9ww== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="Y2IJ/641"; dkim=fail ("headers rsa verify failed") header.d=fsfe.org header.s=2021081301 header.b=gSyIcQ03; 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=1732560812; a=rsa-sha256; cv=none; b=Jankhsq8mpF6+OqDwtq4XWHQR1l8iIXQS7ToQVdO9ou/YoTIoyUjTHZFckW2uu/ja9Tn0n CSlqoUeBmAVJn7WeqzoGCk2BhN+jzhWa4JbApyrXEsQB4RpXDmccT7B3Zku+zQCl6T5QBa 5mINuz60jF029t86Kb+lgnkn5Sce6l8lStM/fV/hnuI7MW2CysToU1gI7/xOOsZsln7F57 wGjgkLIeAWzqEMPuExbHT8xS4VQ59JM8d/JfM+ktUtUDc12iLP2Z9EVmf3HJF2AHFF7HAZ sgP/wX7ul4BEiwbOWExNaffZaGIudFM/Vy15M6ccBhoHFH7U7FS/3SOAjysQcg== 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 6D5C47FF20 for ; Mon, 25 Nov 2024 19:53:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFeCm-0003zZ-OZ; Mon, 25 Nov 2024 13:53: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 1tFeCk-0003zI-Uh for bug-guix@gnu.org; Mon, 25 Nov 2024 13:53:02 -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 1tFeCk-0002T5-M0 for bug-guix@gnu.org; Mon, 25 Nov 2024 13:53:02 -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:References:In-Reply-To:From:To:Subject; bh=jNszJIENlDBYXCoV8tip/MBiey7xcdhV7yJTQshIavY=; b=Y2IJ/6413uLJaNxDDPqDr6QYTdnhTsTJzZlPBY7Uwuhuu3+wglN2F8qNEPi9btu5feXg9E5Pqap+JpLre4yXfxmIa3ohv+wvbORi6AvEvNhQBGDdnffBJWAri44nlkciqg5x/YE3NcWBwkEqJUHYpiM4UyceO49W6cB1Qa5zh22VuNqxT0Bf3Q8YM0XsAlvMjqoQh/TCa4KI29kze37I5Fh8NiI8pbq5s1tUxwzOkfGVl2DOIcWMN0gSUcfMNO9lOy1cVSGq9VxxJZyPd0HnETwkj4czMnT0dc9QtWMvjumz4ZEnOBswn6a/TqslJhvF7ztZ2Q94RID2UtgjIDkS3g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFeCk-0006j1-HA for bug-guix@gnu.org; Mon, 25 Nov 2024 13:53: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:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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?= Received: via spool by 74534-submit@debbugs.gnu.org id=B74534.173256074925801 (code B ref 74534); Mon, 25 Nov 2024 18:53:02 +0000 Received: (at 74534) by debbugs.gnu.org; 25 Nov 2024 18:52:29 +0000 Received: from localhost ([127.0.0.1]:40627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFeCC-0006i5-RK for submit@debbugs.gnu.org; Mon, 25 Nov 2024 13:52:29 -0500 Received: from mail2.fsfe.org ([213.95.165.55]:45910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFeCA-0006ht-HM for 74534@debbugs.gnu.org; Mon, 25 Nov 2024 13:52:27 -0500 From: Jelle Licht DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fsfe.org; s=2021081301; t=1732560744; 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: in-reply-to:in-reply-to:references:references; bh=jNszJIENlDBYXCoV8tip/MBiey7xcdhV7yJTQshIavY=; b=gSyIcQ03iAoy1Aei3HV4qC5qQtJ8BIkM/3mSGyKXG5yVPTeQLr4G6EXQSY0cIEwqnDsoOL B6d+LVtv5eD0Ct0wXHTn+4K/X6wB6vimdIZyH9X9YrQczvFtNKn0kDH78X4/6iXNm9BS4+ lPX6WunakQfHCgPAyFcA1yJ0QVTPIQQ= In-Reply-To: <874j3vi28g.fsf@fsfe.org> References: <874j3vi28g.fsf@fsfe.org> Date: Mon, 25 Nov 2024 19:52:23 +0100 Message-ID: <871pyzi1so.fsf@fsfe.org> MIME-Version: 1.0 Content-Type: text/plain 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: -1.16 X-Spam-Score: -1.16 X-Migadu-Queue-Id: 6D5C47FF20 X-TUID: ideJaMx/UJMn Jelle Licht writes: > 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 Addendum: running `herd eval root "(setsid)"` solves my particular issue, making ^C on my shell no longer kill my user shepherd. - Jelle