From dc5948d47205fd05184a25251e128db6a47b25c2 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Sat, 21 May 2011 00:56:46 +0000 Subject: Have Program::Wait return -2 for crashed and timeouts instead of embedding info in the error message. Per Dan's request. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131780 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Program.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/Support/Program.cpp') diff --git a/lib/Support/Program.cpp b/lib/Support/Program.cpp index fa816f68c8..01860b082d 100644 --- a/lib/Support/Program.cpp +++ b/lib/Support/Program.cpp @@ -28,11 +28,10 @@ Program::ExecuteAndWait(const Path& path, const Path** redirects, unsigned secondsToWait, unsigned memoryLimit, - std::string* ErrMsg, - const char* SignalPrefix) { + std::string* ErrMsg) { Program prg; if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg)) - return prg.Wait(path, secondsToWait, ErrMsg, SignalPrefix); + return prg.Wait(path, secondsToWait, ErrMsg); else return -1; } -- cgit v1.2.3-18-g5258