From 203cae29ecacae348ba18447582ed7fd948aef61 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 1 Dec 2023 02:07:02 +0000 Subject: t/xap_helper: make sendmsg errors more obvious 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(+) (limited to 't') 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) = @_; -- cgit v1.2.3-24-ge0c7