]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/xap_helper: make sendmsg errors more obvious
authorEric Wong <e@80x24.org>
Fri, 1 Dec 2023 02:07:02 +0000 (02:07 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Dec 2023 21:12:12 +0000 (21:12 +0000)
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

index 37679ae909ebfa1441aa5d3f75e7031d56d5d0da..ec78998c79b1d135ef947472f6e6bf3dc70752d1 100644 (file)
@@ -59,6 +59,7 @@ my $doreq = sub {
        $x;
 };
 
+local $SIG{PIPE} = 'IGNORE';
 my $env = { PERL5LIB => join(':', @INC) };
 my $test = sub {
        my (@cmd) = @_;