From 1c7fec9f06c9eb54d0c2c7e94351b4be3250776e Mon Sep 17 00:00:00 2001 From: harrison Date: Tue, 13 May 1997 21:11:57 +0000 Subject: Fixes to use of execve in ACE_Process::spawn. --- ace/Process.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ace/Process.cpp') 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_, -- cgit v1.2.1