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
This commit is contained in:
John Criswell
2003-09-17 19:02:49 +00:00
parent f1d01fb6a4
commit e5b3e1559b
4 changed files with 48 additions and 28 deletions

View File

@@ -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