summaryrefslogtreecommitdiff
path: root/mysql-test/lib/My/Tee.pm
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/lib/My/Tee.pm')
-rw-r--r--mysql-test/lib/My/Tee.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysql-test/lib/My/Tee.pm b/mysql-test/lib/My/Tee.pm
index ee82e6f45ae..5985fe33739 100644
--- a/mysql-test/lib/My/Tee.pm
+++ b/mysql-test/lib/My/Tee.pm
@@ -1,4 +1,5 @@
package My::Tee;
+use IO::Handle;
# see PerlIO::via
@@ -16,6 +17,7 @@ sub WRITE
{
my ($obj, $buf, $fh) = @_;
print $fh $buf;
+ $fh->flush;
print $copyfh $buf;
return length($buf);
}