diff options
author | harrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-06-30 18:00:06 +0000 |
---|---|---|
committer | harrison <harrison@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-06-30 18:00:06 +0000 |
commit | 5358bd3b610ab474e755d257d55271b3bd05779c (patch) | |
tree | a1f97a0f0846dc9bbdf1bdda249c82a04dd01d1f /ace/Process.cpp | |
parent | 140b5ec7912170f4e96a14b986cdacf8994abc43 (diff) | |
download | ATCD-5358bd3b610ab474e755d257d55271b3bd05779c.tar.gz |
Added NO_EXEC option. I've tried this before. CVS sucks.
Diffstat (limited to 'ace/Process.cpp')
-rw-r--r-- | ace/Process.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ace/Process.cpp b/ace/Process.cpp index 9a3d58beb29..8d714a8451a 100644 --- a/ace/Process.cpp +++ b/ace/Process.cpp @@ -236,6 +236,10 @@ ACE_Process::spawn (ACE_Process_Options &options) // Fork the new process. this->child_id_ = ACE_OS::fork (options.command_line_argv ()[0]); + // If we're not supposed to exec, return the process id. + if (ACE_BIT_ENABLED (options.creation_flags (), ACE_Process_Options::NO_EXEC)) + return this->child_id_; + switch (this->child_id_) { case -1: @@ -316,10 +320,10 @@ ACE_Process::wait (const ACE_Time_Value &tv) ACE_Process_Options::ACE_Process_Options (int ie, int cobl) : inherit_environment_ (ie), + creation_flags_ (0), #if defined (ACE_WIN32) environment_inherited_ (0), handle_inheritence_ (TRUE), - creation_flags_ (0), process_attributes_ (NULL), thread_attributes_ (NULL), #else /* ACE_WIN32 */ |