diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-17 19:02:49 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-17 19:02:49 +0000 |
commit | e5b3e1559b97e04f73ea01465a1810383468e9f7 (patch) | |
tree | af32dbbcd8231b04ddbb39bc3ce6da2bfb3a1c8f /include | |
parent | f1d01fb6a45a6fa94d9f66a58107c98bfc451946 (diff) | |
download | llvm-e5b3e1559b97e04f73ea01465a1810383468e9f7.tar.gz llvm-e5b3e1559b97e04f73ea01465a1810383468e9f7.tar.bz2 llvm-e5b3e1559b97e04f73ea01465a1810383468e9f7.tar.xz |
In ExecWait(), made the child process exit if it can't execve() the new
program.
Added the use of const (which compiles and is hopefully correct).
Added comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/Support/SystemUtils.h | 2 | ||||
-rw-r--r-- | include/llvm/Support/SystemUtils.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/Support/SystemUtils.h b/include/Support/SystemUtils.h index 7a4c6277dc..b4d2c697f6 100644 --- a/include/Support/SystemUtils.h +++ b/include/Support/SystemUtils.h @@ -41,5 +41,5 @@ int RunProgramWithTimeout(const std::string &ProgramPath, const char **Args, /// Execute a program with the given arguments and environment and /// wait for it to terminate. /// -int ExecWait (char ** argv, char ** envp); +int ExecWait (const char * const argv[], const char * const envp[]); #endif diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h index 7a4c6277dc..b4d2c697f6 100644 --- a/include/llvm/Support/SystemUtils.h +++ b/include/llvm/Support/SystemUtils.h @@ -41,5 +41,5 @@ int RunProgramWithTimeout(const std::string &ProgramPath, const char **Args, /// Execute a program with the given arguments and environment and /// wait for it to terminate. /// -int ExecWait (char ** argv, char ** envp); +int ExecWait (const char * const argv[], const char * const envp[]); #endif |