From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <bug-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp1.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id iGJxJjUm+2XBJgEA62LTzQ:P1
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 20 Mar 2024 19:08:53 +0100
Received: from aspmx1.migadu.com ([2001:41d0:303:e224::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp1.migadu.com with LMTPS
	id iGJxJjUm+2XBJgEA62LTzQ
	(envelope-from <bug-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Wed, 20 Mar 2024 19:08:53 +0100
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="J+Rj+t/k";
	dmarc=pass (policy=none) header.from=gnu.org;
	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"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1710958133;
	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: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=EQO55AA53V5yQWKBnxffDOmd7mCPpwiJlIMdi30LRME=;
	b=Xz8NZe1BJSlCxFPj3ZtRLttUmvjIABC12lG9Q3llzMz3IvyV/4oDfu3YKAA823dGwMFYup
	0i8RVoS0lupt+k06gHd3t1q9386MPFUblSFLZnk81d5jOKJuXCnmQWViObTJrr66SDm6d6
	tX0Hh9UFp4QeQOPB3U94m0U8jmscmewV4BxUMv9TyAcvv+PN5U+Sq4XMF11M8+lgC1qfbk
	Dou5R12yJ9WPjdwFJPXu6Aw57gdT8zzdiGYORJ+Wdpcd7X2A4T5n/yoqEUoQrAvZcwhKnS
	ohWYu3BzXFwf/didVUuULF7wXs2mRVLVOkV51pkdw8S/zmvIAosVTiZmQsvrwg==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="J+Rj+t/k";
	dmarc=pass (policy=none) header.from=gnu.org;
	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"
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710958133; a=rsa-sha256; cv=none;
	b=TPZi6eQzUEj39zQ/EO4Chiq0Y4F3yJnCEwCQ/PYYT7kC/qLLbubQJTzW4W64VL6MfYvxQs
	QnGqVQIZ9OjBTR2Zopd2x8qf/8+0NTyBZwzvcor0jwpAu+Zyj/Jy4uJ+oPHF7KaL2m+njI
	Tx8hZxwEiFvmr5Dt9Es1fxWJE7pCoTN1SnGLxBOwPFngtTIoTAmM833xgIgr6bSouqrzsH
	wxuBby1V12EEsv7Rbcdw7LzV7rnBrF+15qTENpBfieKoFjqaP6WgLNJicf0kbXkYpLe1MC
	1CnVfCNE6eZDlPoyz6rkhmGfHoz0JUtdvcZRSQBnil8T58M2oR+Hw4zsv/F+fw==
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 4B4F51B5BA
	for <larch@yhetil.org>; Wed, 20 Mar 2024 19:08:53 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-guix-bounces@gnu.org>)
	id 1rn0MT-00042q-Lm; Wed, 20 Mar 2024 14:08:25 -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 <Debian-debbugs@debbugs.gnu.org>)
 id 1rn0MS-00041l-C4
 for bug-guix@gnu.org; Wed, 20 Mar 2024 14:08:24 -0400
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 <Debian-debbugs@debbugs.gnu.org>)
 id 1rn0MR-0008Kl-3w
 for bug-guix@gnu.org; Wed, 20 Mar 2024 14:08:23 -0400
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rn0N4-0005mN-5u
 for bug-guix@gnu.org; Wed, 20 Mar 2024 14:09:02 -0400
X-Loop: help-debbugs@gnu.org
Subject: bug#65463: Herd `fport_write: Broken pipe` error when running `guix
 home reconfigure`
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-guix@gnu.org
Resent-Date: Wed, 20 Mar 2024 18:09:02 +0000
Resent-Message-ID: <handler.65463.B65463.171095812722112@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 65463
X-GNU-PR-Package: guix
X-GNU-PR-Keywords: 
To: Richard Sent <richard@freakingpenguin.com>
Cc: 65463@debbugs.gnu.org
Received: via spool by 65463-submit@debbugs.gnu.org id=B65463.171095812722112
 (code B ref 65463); Wed, 20 Mar 2024 18:09:02 +0000
Received: (at 65463) by debbugs.gnu.org; 20 Mar 2024 18:08:47 +0000
Received: from localhost ([127.0.0.1]:54003 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1rn0Mo-0005kT-Pa
 for submit@debbugs.gnu.org; Wed, 20 Mar 2024 14:08:47 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55914)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@gnu.org>) id 1rn0Mm-0005k6-Pq
 for 65463@debbugs.gnu.org; Wed, 20 Mar 2024 14:08:45 -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 <ludo@gnu.org>)
 id 1rn0M3-0008IF-BO; Wed, 20 Mar 2024 14:07:59 -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=EQO55AA53V5yQWKBnxffDOmd7mCPpwiJlIMdi30LRME=; b=J+Rj+t/k8NiLGRaXNWqH
 wDgntfQ0rmZY9IjKO/z4zGh2Zc+1D7z+rereXTkibhVOPNeUHU50QMC1QcYRFanCfRTaDwFwVcILp
 qtopfMD8yGMlbWegdMNH0PmjzzFvyJm3srNVtLvVYl1xDzGmz+rReN9RsYmAPDDjIzM0IRU/n+90r
 alCl+fyqw+CrBi2uDh0Dyp6wIJvq4rWTipPiXThUe1s0TOufaxKlRqoNqyZb7luirTrx3DmPxn+uL
 YIOngIHaimejtPcboaGHPlV56BrHkCgeZEm818rEx0NIfoOSNUCpzZCHT52RoZAM/FbubVrxmTFta
 o9f9Suzd+53EBw==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@gnu.org>
In-Reply-To: <5538caef3f592a7adc5b75e1cb99a711@freakingpenguin.com> (Richard
 Sent's message of "Thu, 16 Nov 2023 15:09:13 -0500")
References: <169277323322.1687.15739147838600524142@localhost>
 <5538caef3f592a7adc5b75e1cb99a711@freakingpenguin.com>
Date: Wed, 20 Mar 2024 19:07:56 +0100
Message-ID: <8734skzshv.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: 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 <bug-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-guix>
List-Post: <mailto:bug-guix@gnu.org>
List-Help: <mailto:bug-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-guix>,
 <mailto:bug-guix-request@gnu.org?subject=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-Spam-Score: -7.22
X-Spam-Score: -7.22
X-Migadu-Queue-Id: 4B4F51B5BA
X-Migadu-Scanner: mx12.migadu.com
X-TUID: fJxDc8Ds/pUS

Hi Richard and all,

Richard Sent <richard@freakingpenguin.com> skribis:

> However, when fish is in charge of executing on-first-login, stdout and=20
> stderr for the user shepherd get directed to a pipe instead of=20
> /dev/null.
>
> fish fds, both stdout and stderr point to a pipe:
>
> $ ls -l /proc/<HERD_PID>/fd)
> lr-x------   1 richard        users    64 2023-11-16 14:47 0 ->=20
> /dev/null
> l-wx------   1 richard        users    64 2023-11-16 14:47 1 ->=20
> pipe:[41039]
> l-wx------   1 richard        users    64 2023-11-16 14:47 2 ->=20
> pipe:[41039]
> l-wx------   1 richard        users    64 2023-11-16 14:47 6 ->=20
> /home/richard/.local/state/log/shepherd.log
> // ...
>
>
> fish login shell strace of herd:
>
> 21:46:43 write(1, "Spawning systemd-style service=20
> /gnu/store/2zgdxhbnkz8fgsb1l4xydm3nbvj66mih-gnupg-2.2.39/bin/gpg-agent.\n=
",=20
> 103) =3D -1 EPIPE (Broken pipe)

(I assume this is the strace of shepherd, not herd.)

Maybe we should unconditionally run shepherd with stdout/stderr
redirected to /dev/null?

That would sidestep the problem and it=E2=80=99s probably a good idea anywa=
y.

WDYT?

Ludo=E2=80=99.