diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-29 16:54:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-29 16:54:25 +0000 |
commit | e5f77cda25169fcbadc32f0f0b3da2e00ba86b7c (patch) | |
tree | 69ac8f68d8338ead3821fe230376627d5d36f6f8 /lib/System/Program.cpp | |
parent | d8d716fad3eefce98fac5a76a70250d89fcf9a20 (diff) |
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
Diffstat (limited to 'lib/System/Program.cpp')
-rw-r--r-- | lib/System/Program.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/System/Program.cpp b/lib/System/Program.cpp index cd58c2cc57..90aba763fa 100644 --- a/lib/System/Program.cpp +++ b/lib/System/Program.cpp @@ -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; } |