diff options
author | harrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-13 21:11:57 +0000 |
---|---|---|
committer | harrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-05-13 21:11:57 +0000 |
commit | 1c7fec9f06c9eb54d0c2c7e94351b4be3250776e (patch) | |
tree | f5b0963e7a16259a1bce21647021b6b9acc4efd8 /ace/Process.cpp | |
parent | 5a780088b01f7c87a884070bbfaeae75551b1f43 (diff) | |
download | ATCD-1c7fec9f06c9eb54d0c2c7e94351b4be3250776e.tar.gz |
Fixes to use of execve in ACE_Process::spawn.
Diffstat (limited to 'ace/Process.cpp')
-rw-r--r-- | ace/Process.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ace/Process.cpp b/ace/Process.cpp index 8cee08a789a..4a959bc1504 100644 --- a/ace/Process.cpp +++ b/ace/Process.cpp @@ -261,7 +261,7 @@ ACE_Process::spawn (ACE_Process_Options &options) // Child process executes the command. int result; - if (options.env_argv () == 0) + if (options.env_argv ()[0] == 0) result = ACE_OS::execvp (options.command_line_argv ()[0], options.command_line_argv ()); // command-line args else @@ -561,6 +561,7 @@ ACE_Process_Options::ACE_Process_Options (int ie, working_directory_[0] = '\0'; environment_buf_[0] = '\0'; + environment_argv_[0] = 0; #if defined (ACE_WIN32) ACE_OS::memset ((void *) &this->startup_info_, |