From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 04B871F452 for ; Fri, 1 Dec 2023 02:07:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1701396426; bh=8KDx5XI13kN1TariRZLXeEIvFmkflIf/0NYGxN08OEE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wCan0jk7Ji7/117HTQ9UjPXn0khGBw542C2tHoGt13uoQ5D/z6wioqWtQb3brd+iU /KJpauefC6UimynNw4Y/bnFR00rCptLjo3dwmRaMF6Ph/esQN32ZUKZIpyNv33M4hC jdZsEI7UuAiwtap77fduqdvawBjGa/vVNsq2jwZ0= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/4] t/xap_helper: make sendmsg errors more obvious Date: Fri, 1 Dec 2023 02:07:02 +0000 Message-ID: <20231201020705.2752562-2-e@80x24.org> In-Reply-To: <20231201020705.2752562-1-e@80x24.org> References: <20231201020705.2752562-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: By ignoring SIGPIPE, we hit our own error path and emit an informative error message instead of dying abruptly and requiring somebody to run `echo $?' to see the child status from their shell. --- t/xap_helper.t | 1 + 1 file changed, 1 insertion(+) diff --git a/t/xap_helper.t b/t/xap_helper.t index 37679ae9..ec78998c 100644 --- a/t/xap_helper.t +++ b/t/xap_helper.t @@ -59,6 +59,7 @@ my $doreq = sub { $x; }; +local $SIG{PIPE} = 'IGNORE'; my $env = { PERL5LIB => join(':', @INC) }; my $test = sub { my (@cmd) = @_;