diff options
author | Dan Gohman <gohman@apple.com> | 2010-10-29 16:54:25 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-10-29 16:54:25 +0000 |
commit | e5f77cda25169fcbadc32f0f0b3da2e00ba86b7c (patch) | |
tree | 69ac8f68d8338ead3821fe230376627d5d36f6f8 /include/llvm/System/Program.h | |
parent | d8d716fad3eefce98fac5a76a70250d89fcf9a20 (diff) |
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
Diffstat (limited to 'include/llvm/System/Program.h')
-rw-r--r-- | include/llvm/System/Program.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/System/Program.h b/include/llvm/System/Program.h index 7017305a2e..0c14076e30 100644 --- a/include/llvm/System/Program.h +++ b/include/llvm/System/Program.h @@ -90,12 +90,13 @@ namespace sys { /// @see Execute /// @brief Waits for the program to exit. int Wait - ( unsigned secondsToWait = 0, ///< If non-zero, this specifies the amount + ( const Path& path, ///< The path to the child process executable. + unsigned secondsToWait, ///< If non-zero, this specifies the amount ///< of time to wait for the child process to exit. If the time ///< expires, the child is killed and this call returns. If zero, ///< this function will wait until the child finishes or forever if ///< it doesn't. - std::string* ErrMsg = 0 ///< If non-zero, provides a pointer to a string + std::string* ErrMsg ///< If non-zero, provides a pointer to a string ///< instance in which error messages will be returned. If the string ///< is non-empty upon return an error occurred while waiting. ); |