From: Ian Jackson Date: Sun, 23 Aug 2009 10:22:11 +0000 (+0100) Subject: pipethrough_run_along checks for errors on $tf X-Git-Tag: 3.4~144 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=eee304bf014da143aa2a03847f4af51f0fa29188 pipethrough_run_along checks for errors on $tf --- diff --git a/yarrg/Commods.pm b/yarrg/Commods.pm index 13f5812..27e06e8 100644 --- a/yarrg/Commods.pm +++ b/yarrg/Commods.pm @@ -257,6 +257,7 @@ sub pipethrough_prep () { sub pipethrough_run_along ($$$@) { my ($tf, $childprep, $cmd, @a) = @_; + $tf->error and die $!; $tf->flush or die $!; $tf->seek(0,0) or die $!; my $fh= new IO::File;