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:
Dan Gohman
2010-10-29 16:54:25 +00:00
parent d8d716fad3
commit e5f77cda25
4 changed files with 16 additions and 11 deletions

View File

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