* Redir.ExecuteProcess uses TProcess.WaitFor with timeout for FPC > 3.0

git-svn-id: trunk@32992 -
This commit is contained in:
florian 2016-01-24 09:39:23 +00:00
parent bdbdee6acf
commit 2e506ec4ac

View File

@ -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