mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 23:49:07 +02:00
* flush std handlers at thread termination
git-svn-id: trunk@4752 -
This commit is contained in:
parent
c863a91be9
commit
262f60e67d
@ -82,6 +82,11 @@ end;
|
|||||||
procedure EndThread(ExitCode : DWord);
|
procedure EndThread(ExitCode : DWord);
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
{ Make sure that all output is written to the redirected file }
|
||||||
|
Flush(Output);
|
||||||
|
Flush(ErrOutput);
|
||||||
|
Flush(StdOut);
|
||||||
|
Flush(StdErr);
|
||||||
CurrentTM.EndThread(ExitCode);
|
CurrentTM.EndThread(ExitCode);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user