Просмотр исходного кода

* Flush all StdIO output files

git-svn-id: trunk@2985 -
peter 19 лет назад
Родитель
Сommit
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;