diff options
author | Andrew Trick <atrick@apple.com> | 2011-05-21 00:56:46 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-05-21 00:56:46 +0000 |
commit | dc5948d47205fd05184a25251e128db6a47b25c2 (patch) | |
tree | 79eabc660d9d50197ac5b3182ac793e88b9dbc82 /lib/Support/Program.cpp | |
parent | 5c2256a5719172273eaef198f92d8af924ff8623 (diff) |
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
Diffstat (limited to 'lib/Support/Program.cpp')
-rw-r--r-- | lib/Support/Program.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |