소스 검색

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