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

@@ -337,7 +337,8 @@ Program::Execute(const Path& path,
}
int
Program::Wait(unsigned secondsToWait,
Program::Wait(const Path &path,
unsigned secondsToWait,
std::string* ErrMsg) {
if (Data_ == 0) {
MakeErrMsg(ErrMsg, "Process not started!");