浏览代码

* 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;