From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id GFE2Bi73J2U5CQAAG6o9tA:P1 (envelope-from ) for ; Thu, 12 Oct 2023 15:39:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GFE2Bi73J2U5CQAAG6o9tA (envelope-from ) for ; Thu, 12 Oct 2023 15:39:58 +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 AD44165A89 for ; Thu, 12 Oct 2023 15:39:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=LMo25Tg5; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697117997; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=edcrXUBzX4o8KSVlzfxyq/uFz3b4S0FkmIrQknCHoxo=; b=SkUrU35FNCagA5bUOwzVsigrXKWAuzkipMPTRw37Kb0NGvjub/zIp0j/IzSjUfwI8FHzZp ZZNaRPxqBKBAbE3CFbDRyR0LN2v13ZTMCdrkcjFngoIqkQ1M7xJWmluG8VdPerD/gcTJnK hRv/WAnH8GbAA+eIjP8b7xeilh7ikdEAZH4SOMSmzgaR3lEs+K7tB42T5xLHAf6C1SZnao CT7hBcp5XC9V391RBCN2hyojN/s4yOIkTahTIqTjf07r3USkJ2MMT5CDdQRIc/EhPOG5Fq UjPzNOdOlcRi3GJQUe8UHA2Oat/eSySeVfRbV9Ogw8uM6GOpiawnyBO10a+zyw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697117997; a=rsa-sha256; cv=none; b=tkwfF7bvWgwjBdQVyPHT/tIIiDq4cRL9JaWWvpkQA3Bjv1H3nLCSicDonYk9k127JNJn1R 9g9BDYw0O376qx7lwZjMrT5sSEuy9tssk2ZFEvfWCeOvMggHhTARZc3ns8P3dxlnXb+oi9 YklBJ+opgdjjVBvqYde0d68x6KphszpGbUXQjUAoX0O39zWrXZ8qd2Y6h0qOe2ycR8kMix 08B6awpn4++XH0ayr7/8DyvTPFcR1W6Rk8KaIf9eEuWFJDB0LZgo9mZFf5o7JuNBFvXcB4 MHQe4cgjvNHtbaOlQihi8rRgjoaf1+PquwNtosdGiL7FPIyADuKl7mz+tZaHVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=LMo25Tg5; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqvuj-00062S-OD; Thu, 12 Oct 2023 09:39:45 -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 1qqvui-00062J-Dl for guix-patches@gnu.org; Thu, 12 Oct 2023 09:39:44 -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 ) id 1qqvuh-0002ex-1g; Thu, 12 Oct 2023 09:39:43 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qqvv0-00080U-1Y; Thu, 12 Oct 2023 09:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66499] [PATCH] ui: Handle EPIPE errors when displaying Guix version. Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, rekado@elephly.net, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Thu, 12 Oct 2023 13:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66499 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66499@debbugs.gnu.org Cc: Simon Tournier , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.169711798830747 (code B ref -1); Thu, 12 Oct 2023 13:40:01 +0000 Received: (at submit) by debbugs.gnu.org; 12 Oct 2023 13:39:48 +0000 Received: from localhost ([127.0.0.1]:41423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqvum-0007zq-4C for submit@debbugs.gnu.org; Thu, 12 Oct 2023 09:39:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:53586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qqvuj-0007zT-J8 for submit@debbugs.gnu.org; Thu, 12 Oct 2023 09:39:47 -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 1qqvuA-0005zQ-J6 for guix-patches@gnu.org; Thu, 12 Oct 2023 09:39:13 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qqvu8-0002dC-JI for guix-patches@gnu.org; Thu, 12 Oct 2023 09:39:10 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-406aaccb41dso3241025e9.0 for ; Thu, 12 Oct 2023 06:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697117947; x=1697722747; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=edcrXUBzX4o8KSVlzfxyq/uFz3b4S0FkmIrQknCHoxo=; b=LMo25Tg5/gXa70tF4eBPTjnAVYyDg0NNd1ymYm9MoT6Rt8ZzMWtSCmyFcebXnEz/cD xUBkR/GSzyR0qxNRCJ2JjECToGoz6giAH8ABH2C8Jwhp7D8YCaEX+Ev/DZKRasQIINSc uAehzYP9RcxzMOWV+eihNWa0IP715i0QReCB6QYQeXRVPqebSW+9HcQwtW94lM57lQOJ jfLC4y567CmMTunjSgd4G71O60FQOX6Ub6bBKoJDIg71cFL02kaRV6xyc+Q3Wnj1wTw8 7VX016xqLDFC2N9ux/m1zj4+yDtQPdMGTWIHy6n1yTHEuasPW5QZWvXjV1X5/jERWEzk SlJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697117947; x=1697722747; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=edcrXUBzX4o8KSVlzfxyq/uFz3b4S0FkmIrQknCHoxo=; b=ceTenMm0lgZJO2OYqSFDAN35c1Mxc2KcpTLKn67nUW/BastRJh+3ZwDhPjLk6AR0p8 m/ecC0W/mtBx4bawMMK3yKWLgM2MEPkeNzyarvEb5FlJfhpId9/RJeGjmWEmkJiTAJQ/ fHIaY2safiPU80z0soaDEs+qyDp4djm1N+ADDLgbLrCI9APKp0xToy7VSC4b+aXL0z7O xXI6uUtpzLrNtuoVCBaIrLb2SQ+arCNx1hTBQhZEMQL33oWe4l3uhQPZnRd+YTaKvu7x KmxB1jiguMVhMAmCWhIJrZ4MKziSuOUjZQcfTTmoK+4PA7y+lmFIa32nr/y1B8SYGnON GmoQ== X-Gm-Message-State: AOJu0Yxj1UWT5wZ3tWpsis/ep+D01eWYKmTIZjjaHJ1BxKXeakD1j6eM O8OwOKrIHJ59eLS4L2FgurX5HBrvT+k= X-Google-Smtp-Source: AGHT+IHt6CcAA6Zz+1flqr/qVd7aNm9DXXWPPdDvaUyFxQxoKvSg4wUW57ypZYaZ+tS/e2zHGgX5Yg== X-Received: by 2002:a05:600c:511d:b0:401:b53e:6c3e with SMTP id o29-20020a05600c511d00b00401b53e6c3emr21762832wms.1.1697117946723; Thu, 12 Oct 2023 06:39:06 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id x18-20020a5d4912000000b0032d9382e6e0sm1440501wrq.45.2023.10.12.06.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 06:39:06 -0700 (PDT) From: Simon Tournier Date: Thu, 12 Oct 2023 15:39:03 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x333.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 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: 4.30 X-Migadu-Queue-Id: AD44165A89 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: 4.30 X-TUID: RB1+Hjm75f6/ Fixes . Reported by Clément Lassieur . * guix/ui.scm (run-guix): Handle EPIPE errors when displaying version. --- guix/ui.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Hi, It appears to me a trivial patch that could directly could go be merged but just in case I am not missing the obvious. Cheers, simon diff --git a/guix/ui.scm b/guix/ui.scm index 6f2d4fe245..507bc67f1d 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -2309,7 +2309,7 @@ (define (run-guix . args) ((or ("-h") ("--help")) (leave-on-EPIPE (show-guix-help))) ((or ("-V") ("--version")) - (show-version-and-exit "guix")) + (leave-on-EPIPE (show-version-and-exit "guix"))) (((? option? o) args ...) (format (current-error-port) (G_ "guix: unrecognized option '~a'~%") o) base-commit: 1328c4cca531318e3ed90c6aecb522a5b22a4bcc -- 2.38.1