From e5f77cda25169fcbadc32f0f0b3da2e00ba86b7c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 29 Oct 2010 16:54:25 +0000 Subject: 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 --- lib/System/Win32/Program.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/System/Win32/Program.inc') 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!"); -- cgit v1.2.3