Преглед изворни кода

* Flush all StdIO output files

git-svn-id: trunk@2985 -
peter пре 19 година
родитељ
комит
9381c9360e
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      rtl/inc/system.inc

+ 5 - 0
rtl/inc/system.inc

@@ -668,6 +668,11 @@ Begin
      dump_stack(stdout,ErrorBase);
      Writeln(stdout,'');
    End;
+  { Make sure that all output is written to the redirected file }
+  Flush(Output);
+  Flush(ErrOutput);
+  Flush(StdOut);
+  Flush(StdErr);
 End;