mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 18:47:52 +02:00
* Redir.ExecuteProcess uses TProcess.WaitFor with timeout for FPC > 3.0
git-svn-id: trunk@32992 -
This commit is contained in:
parent
bdbdee6acf
commit
2e506ec4ac
@ -1093,12 +1093,17 @@ begin
|
||||
P.InheritHandles:=(execinheritshandles in flags);
|
||||
|
||||
P.Execute;
|
||||
{$ifdef VER3_0}
|
||||
{$ifdef Windows}
|
||||
WaitForSingleObject(P.ProcessHandle,max_count);
|
||||
counter:=max_count;
|
||||
{$else not Windows}
|
||||
counter:=0;
|
||||
{$endif not Windows}
|
||||
{$else}
|
||||
P.WaitForExit(max_count);
|
||||
counter:=max_count;
|
||||
{$endif}
|
||||
|
||||
while P.Running do
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user