From 192a0242118fcf3d13c29031b1d54711abb1fc5a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 4 Jan 2005 07:38:14 +0000 Subject: [PATCH] Fix multiple-output to stdout bug. --- grading/lib/Pintos/Grading.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grading/lib/Pintos/Grading.pm b/grading/lib/Pintos/Grading.pm index 36599a0..c2072a4 100644 --- a/grading/lib/Pintos/Grading.pm +++ b/grading/lib/Pintos/Grading.pm @@ -16,6 +16,11 @@ use POSIX; use Getopt::Long qw(:config no_ignore_case); use Algorithm::Diff; +# We execute lots of subprocesses. +# Without this, our stdout output can get flushed multiple times, +# which is harmless but looks bizarre. +$| = 1; + sub parse_cmd_line { my ($do_regex, $no_regex); GetOptions ("v|verbose+" => \$verbose, -- 2.30.2