From 53c35a635276bb78f098947755dd072b5b800358 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 17 Oct 2016 11:49:07 -0400 Subject: chronic: Flush output more often to better preserve stdout,err ordering. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Particularly when a chunk that is not newline-terminated is read, this makes it be flushed right away. Thanks, Miroslav Ĺ ustek --- chronic | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chronic') diff --git a/chronic b/chronic index 7cfc2d6..cb927b3 100755 --- a/chronic +++ b/chronic @@ -86,7 +86,9 @@ else { sub showout { print "STDOUT:\n" if $opt_v; print STDOUT $out; + STDOUT->flush(); print "\nSTDERR:\n" if $opt_v; print STDERR $err; + STDERR->flush(); print "\nRETVAL: ".($ret >> 8)."\n" if $opt_v; } -- cgit v1.2.1