aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2017-11-12 11:50:07 -0500
committerBrian Cully <bjc@kublai.com>2017-11-12 11:50:07 -0500
commitbbaaba6a72abb2357d1650eabe60e82eed024a58 (patch)
tree1e84c0a3d993764cb049b030ef950d3e7ad6278a
parent2bb7eb2dec219d05edb53002e10811fa214325b8 (diff)
downloadxmpt-bbaaba6a72abb2357d1650eabe60e82eed024a58.tar.gz
xmpt-bbaaba6a72abb2357d1650eabe60e82eed024a58.zip
Use global autoflush.
-rwxr-xr-xxmpt3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmpt b/xmpt
index 5e79d7d..8fed801 100755
--- a/xmpt
+++ b/xmpt
@@ -26,6 +26,8 @@ GetOptions('config|c=s' => \$configpath,
'help|h' => \$help) || usage(1);
usage(0) if $help;
+$| = 1;
+
my %conf = read_conf($configpath);
my @plans = load_plans($testplanpath, $templatepath);
@@ -41,7 +43,6 @@ if (@ARGV) {
}
binmode($inh, ':utf8');
binmode($outh, ':utf8');
-autoflush $outh 1;
eval_in($inh, $outh, \%conf, @plans);
waitpid($pid, 0) if $pid;