mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Fix the behavior of ExecuteAndWait with a non-zero timeout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,7 +34,8 @@ int sys::ExecuteAndWait(StringRef Program, const char **args, const char **envp,
|
||||
if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) {
|
||||
if (ExecutionFailed)
|
||||
*ExecutionFailed = false;
|
||||
ProcessInfo Result = Wait(PI, secondsToWait, true, ErrMsg);
|
||||
ProcessInfo Result = Wait(
|
||||
PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg);
|
||||
return Result.ReturnCode;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user