From fc81579b5e10b1c627c1bdbd9d1d035868cf11ee 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. llvm-svn: 117664 --- llvm/lib/System/Program.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/System/Program.cpp') diff --git a/llvm/lib/System/Program.cpp b/llvm/lib/System/Program.cpp index cd58c2cc578..90aba763fa9 100644 --- a/llvm/lib/System/Program.cpp +++ b/llvm/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