diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 17:02:24 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2014-11-24 17:02:24 +0000 | 
| commit | 91bc56ed825ba56b3cc264aa5c95ab84f86832ab (patch) | |
| tree | 4df130b28021d86e13bf4565ef58c1c5a5e093b4 /contrib/llvm/lib/Support/Program.cpp | |
| parent | 9efc7e72bb1daf5d6019871d9c93a1c488a11229 (diff) | |
| parent | 5ca98fd98791947eba83a1ed3f2c8191ef7afa6c (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/lib/Support/Program.cpp')
| -rw-r--r-- | contrib/llvm/lib/Support/Program.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/llvm/lib/Support/Program.cpp b/contrib/llvm/lib/Support/Program.cpp index 83f2ec4f0fc4..b84b82b1f10b 100644 --- a/contrib/llvm/lib/Support/Program.cpp +++ b/contrib/llvm/lib/Support/Program.cpp @@ -7,13 +7,13 @@  //  //===----------------------------------------------------------------------===//  // -//  This header file implements the operating system Program concept. +//  This file implements the operating system Program concept.  //  //===----------------------------------------------------------------------===//  #include "llvm/Support/Program.h"  #include "llvm/Config/config.h" -#include "llvm/Support/system_error.h" +#include <system_error>  using namespace llvm;  using namespace sys; @@ -34,7 +34,8 @@ int sys::ExecuteAndWait(StringRef Program, const char **args, const char **envp,    if (Execute(PI, Program, args, envp, redirects, memoryLimit, ErrMsg)) {      if (ExecutionFailed)        *ExecutionFailed = false; -    ProcessInfo Result = Wait(PI, secondsToWait, true, ErrMsg); +    ProcessInfo Result = Wait( +        PI, secondsToWait, /*WaitUntilTerminates=*/secondsToWait == 0, ErrMsg);      return Result.ReturnCode;    }  | 
