Skip to content

Commit

Permalink
Close IO::Hadle/IO::Pipe when done reading
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Apr 23, 2017
1 parent 6e6dc52 commit 4ff82b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/TAP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ package Runner {
$async.stderr;
}
when IO::Handle:D {
$async.stderr.lines.act({ $err.say($_) });
$async.stderr.lines(:close).act({ $err.say($_) });
}
when Supply:D {
$async.stderr.act({ $err.emit($_) }, :done({ $err.done }), :quit({ $err.quit($^reason) }));
Expand Down Expand Up @@ -869,7 +869,7 @@ package Runner {
when Supply:D {
my $tmp = run($!source.path, $!source.args, :out, :!chomp, :err);
start {
$!source.err.emit($_) for $tmp.err.lines;
$!source.err.emit($_) for $tmp.err.lines(:close);
$!source.err.done;
}
$tmp;
Expand Down

0 comments on commit 4ff82b1

Please sign in to comment.