aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Win32/Program.inc
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-29 16:54:25 +0000
committerDan Gohman <gohman@apple.com>2010-10-29 16:54:25 +0000
commite5f77cda25169fcbadc32f0f0b3da2e00ba86b7c (patch)
tree69ac8f68d8338ead3821fe230376627d5d36f6f8 /lib/System/Win32/Program.inc
parentd8d716fad3eefce98fac5a76a70250d89fcf9a20 (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/Win32/Program.inc')
-rw-r--r--lib/System/Win32/Program.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/System/Win32/Program.inc b/lib/System/Win32/Program.inc
index ea1b5a6a06..b55aa2fa80 100644
--- a/lib/System/Win32/Program.inc
+++ b/lib/System/Win32/Program.inc
@@ -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!");