Merge "Additional attempts to flosh stdout/stderr"
diff --git a/stack.sh b/stack.sh
index e76a55c..a160464 100755
--- a/stack.sh
+++ b/stack.sh
@@ -541,6 +541,7 @@
                     print
                     print > logfile
                     fflush("")
+                    fflush(logfile)
                 }' ) 2>&1
         # Set up a second fd for output
         exec 6> >( tee "${SUMFILE}" )