diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-08-23 21:46:10 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-08-23 21:46:10 +0000 |
commit | 7f3a448235f8d4a12d4ab047e023b599c6fa2d6e (patch) | |
tree | 7519f00403db3c2a6b6b52b6d109525784a34665 /ace/Process.cpp | |
parent | 4022b153f5c63bf616c374032daa13872909723f (diff) | |
download | ATCD-7f3a448235f8d4a12d4ab047e023b599c6fa2d6e.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Process.cpp')
-rw-r--r-- | ace/Process.cpp | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/ace/Process.cpp b/ace/Process.cpp index 323814a72a4..44dfbfac1a1 100644 --- a/ace/Process.cpp +++ b/ace/Process.cpp @@ -4,7 +4,6 @@ #include "ace/Process.h" #include "ace/ARGV.h" #include "ace/SString.h" -#include "ace/Service_Config.h" #if !defined (__ACE_INLINE__) #include "ace/Process.i" @@ -71,25 +70,13 @@ ACE_Process::spawn (ACE_Process_Options &options) { if (options.get_stdin () != ACE_INVALID_HANDLE && ACE_OS::dup2 (options.get_stdin (), ACE_STDIN) == -1) - { - ACE_DEBUG ((LM_MAX, - "(%P): ACE_Process::spawn (); unable to open stdin; exiting!!!!\n")); - ACE_OS::exit (errno); - } + ACE_OS::exit (errno); else if (options.get_stdout () != ACE_INVALID_HANDLE && ACE_OS::dup2 (options.get_stdout (), ACE_STDOUT) == -1) - { - ACE_DEBUG ((LM_MAX, - "(%P): ACE_Process::spawn (); unable to open stdout; exiting!!!!\n")); - ACE_OS::exit (errno); - } + ACE_OS::exit (errno); else if (options.get_stderr () != ACE_INVALID_HANDLE && ACE_OS::dup2 (options.get_stderr (), ACE_STDERR) == -1) - { - ACE_DEBUG ((LM_MAX, - "(%P): ACE_Process::spawn (); unable to open stderr; exiting!!!!\n")); - ACE_OS::exit (errno); - } + ACE_OS::exit (errno); // close down unneeded descriptors ACE_OS::close (options.get_stdin ()); @@ -126,12 +113,6 @@ ACE_Process::spawn (ACE_Process_Options &options) { // If the execv fails, this child needs to exit. - // Print the message if debug_ is greater than 1 in the - // service configurator. - if (ACE_Service_Config::debug_ > 1) - ACE_DEBUG ((LM_MAX, - "(%P): ACE_Process::spawn (); exec failed: exiting!!!!\n")); - // Exit with the errno so that the calling process can // catch this and figure out what went wrong. ACE_OS::exit (errno); |