diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-01-14 07:58:17 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2000-01-14 07:58:17 +0000 |
commit | 61445fc6e4d0b790112ace0b3a30cd5045e094e8 (patch) | |
tree | f91bc963f88d52ed0e2337b0e46c1cc34f7287e0 /ace/Process.cpp | |
parent | 4451725615cf78f4f1c24a1a4d4995da9407b250 (diff) | |
download | ATCD-61445fc6e4d0b790112ace0b3a30cd5045e094e8.tar.gz |
ChangeLogTag:Fri Jan 14 01:48:26 2000 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'ace/Process.cpp')
-rw-r--r-- | ace/Process.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/Process.cpp b/ace/Process.cpp index 53ed266db4c..9f21d88a2af 100644 --- a/ace/Process.cpp +++ b/ace/Process.cpp @@ -85,7 +85,7 @@ ACE_Process::spawn (ACE_Process_Options &options) if (options.env_argv ()[0] == 0) // command-line args - this->child_id_ = ACE_OS::execvp (options.command_line_argv ()[0], + this->child_id_ = ACE_OS::execvp (options.process_name (), options.command_line_argv ()); else { @@ -99,7 +99,7 @@ ACE_Process::spawn (ACE_Process_Options &options) // Now the forked process has both inherited variables and the // user's supplied variables. - this->child_id_ = ACE_OS::execvp (options.command_line_argv ()[0], + this->child_id_ = ACE_OS::execvp (options.process_name (), options.command_line_argv ()); } @@ -109,7 +109,7 @@ ACE_Process::spawn (ACE_Process_Options &options) return ACE_INVALID_PID; // Fork the new process. - this->child_id_ = ACE::fork (options.command_line_argv ()[0], + this->child_id_ = ACE::fork (options.process_name (), options.avoid_zombies ()); if (this->child_id_ == 0) @@ -193,7 +193,7 @@ ACE_Process::spawn (ACE_Process_Options &options) if (options.env_argv ()[0] == 0) // command-line args - result = ACE_OS::execvp (options.command_line_argv ()[0], + result = ACE_OS::execvp (options.process_name (), options.command_line_argv ()); else { @@ -212,7 +212,7 @@ ACE_Process::spawn (ACE_Process_Options &options) // Now the forked process has both inherited variables and // the user's supplied variables. - result = ACE_OS::execvp (options.command_line_argv ()[0], + result = ACE_OS::execvp (options.process_name (), options.command_line_argv ()); #endif /* ghs */ } @@ -382,7 +382,7 @@ ACE_Process_Options::ACE_Process_Options (int ie, LPTSTR[mea]); environment_buf_[0] = '\0'; environment_argv_[0] = 0; - + process_name_[0] = '\0'; #if defined (ACE_WIN32) ACE_OS::memset ((void *) &this->startup_info_, 0, |