mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-06 13:56:26 +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.InheritHandles:=(execinheritshandles in flags);
|
||||||
|
|
||||||
P.Execute;
|
P.Execute;
|
||||||
|
{$ifdef VER3_0}
|
||||||
{$ifdef Windows}
|
{$ifdef Windows}
|
||||||
WaitForSingleObject(P.ProcessHandle,max_count);
|
WaitForSingleObject(P.ProcessHandle,max_count);
|
||||||
counter:=max_count;
|
counter:=max_count;
|
||||||
{$else not Windows}
|
{$else not Windows}
|
||||||
counter:=0;
|
counter:=0;
|
||||||
{$endif not Windows}
|
{$endif not Windows}
|
||||||
|
{$else}
|
||||||
|
P.WaitForExit(max_count);
|
||||||
|
counter:=max_count;
|
||||||
|
{$endif}
|
||||||
|
|
||||||
while P.Running do
|
while P.Running do
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user