From 267371b1273b518215939e817e53733584b68af7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 29 Dec 2019 12:51:18 +0000 Subject: spawn: allow passing GLOB handles for redirects We can save callers the trouble of {-hold} and {-dev_null} refs as well as the trouble of calling fileno(). --- t/httpd-corner.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/httpd-corner.t') diff --git a/t/httpd-corner.t b/t/httpd-corner.t index 4ef1618a..4ed34934 100644 --- a/t/httpd-corner.t +++ b/t/httpd-corner.t @@ -266,7 +266,7 @@ SKIP: { my $cmd = [qw(curl --tcp-nodelay --no-buffer -T- -HExpect: -sS), $url]; open my $cout, '+>', undef or die; open my $cerr, '>', undef or die; - my $rdr = { 0 => fileno($r), 1 => fileno($cout), 2 => fileno($cerr) }; + my $rdr = { 0 => $r, 1 => $cout, 2 => $cerr }; my $pid = spawn($cmd, undef, $rdr); close $r or die "close read pipe: $!"; foreach my $c ('a'..'z') { -- cgit v1.2.3-24-ge0c7