GNU bug report logs - #66499
[PATCH] ui: Handle EPIPE errors when displaying Guix version.

Previous Next

Package: guix-patches;

Reported by: Simon Tournier <zimon.toutoune <at> gmail.com>

Date: Thu, 12 Oct 2023 13:40:01 UTC

Severity: normal

Tags: patch

Done: Simon Tournier <zimon.toutoune <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #74 received at 66499 <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: 66499 <at> debbugs.gnu.org
Cc: othacehe <at> gnu.org, Simon Tournier <zimon.toutoune <at> gmail.com>
Subject: [PATCH v2 21/39] scripts: offload: Handle EPIPE errors when
 displaying help.
Date: Mon, 16 Oct 2023 19:29:39 +0200
* guix/scripts/offload.scm (guix-offload): Handle EPIPE errors when displaying
help.
---
 guix/scripts/offload.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/guix/scripts/offload.scm b/guix/scripts/offload.scm
index 7b76126d35..137e3b5fe3 100644
--- a/guix/scripts/offload.scm
+++ b/guix/scripts/offload.scm
@@ -868,11 +868,12 @@ (define-command (guix-offload . args)
     (("--version")
      (show-version-and-exit "guix offload"))
     (("--help")
-     (format #t (G_ "Usage: guix offload SYSTEM MAX-SILENT-TIME \
+     (leave-on-EPIPE
+      (format #t (G_ "Usage: guix offload SYSTEM MAX-SILENT-TIME \
 PRINT-BUILD-TRACE? BUILD-TIMEOUT
 Process build offload requests written on the standard input, possibly
 offloading builds to the machines listed in '~a'.~%")
-             %machine-file)
+              %machine-file))
      (display (G_ "
 This tool is meant to be used internally by 'guix-daemon'.\n"))
      (show-bug-report-information))
-- 
2.38.1





This bug report was last modified 1 year and 216 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.