mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
Make Program::Wait differentiate execution failure due to the file
being not found from the file being not executable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117664 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -31,7 +31,7 @@ Program::ExecuteAndWait(const Path& path,
|
||||
std::string* ErrMsg) {
|
||||
Program prg;
|
||||
if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg))
|
||||
return prg.Wait(secondsToWait, ErrMsg);
|
||||
return prg.Wait(path, secondsToWait, ErrMsg);
|
||||
else
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user