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/Program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/System/Program.cpp') 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; } -- cgit v1.2.3-18-g5258