Browse Source

* Call SysFlushStdio from FlushThread, instead of duplicating its functionality.
* Don't call FlushThread from EndThread, since r17798 it is called from DoneThread.

git-svn-id: trunk@18018 -

sergei 14 years ago
parent
commit
24c3a43b35
1 changed files with 1 additions and 6 deletions
  1. 1 6
      rtl/inc/thread.inc

+ 1 - 6
rtl/inc/thread.inc

@@ -124,18 +124,13 @@ procedure FlushThread;
 
 begin
 {$ifdef FPC_HAS_FEATURE_CONSOLEIO}
-  { Make sure that all output is written to the redirected file }
-  Flush(Output);
-  Flush(ErrOutput);
-  Flush(StdOut);
-  Flush(StdErr);
+  SysFlushStdio;
 {$endif FPC_HAS_FEATURE_CONSOLEIO}
 end;
 
 procedure EndThread(ExitCode : DWord);
 
 begin
-  FlushThread;
   CurrentTM.EndThread(ExitCode);
 end;