summaryrefslogtreecommitdiff
path: root/ACE/ace/Process.cpp
diff options
context:
space:
mode:
authorjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-10-29 15:02:22 +0000
committerjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-10-29 15:02:22 +0000
commitfc9fb5e60eb5401f0667959a10ce69ef246ecffa (patch)
treecf9197a417cf4821646b332957ad751449cbb408 /ACE/ace/Process.cpp
parentf8a9c471406905e823ad978bc2710e8c76936306 (diff)
downloadATCD-fc9fb5e60eb5401f0667959a10ce69ef246ecffa.tar.gz
ChangeLogTag: Mon Oct 29 15:01:28 UTC 2007 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'ACE/ace/Process.cpp')
-rw-r--r--ACE/ace/Process.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/ACE/ace/Process.cpp b/ACE/ace/Process.cpp
index 16f14a83c88..11ac859ebf2 100644
--- a/ACE/ace/Process.cpp
+++ b/ACE/ace/Process.cpp
@@ -353,16 +353,16 @@ ACE_Process::spawn (ACE_Process_Options &options)
if (options.getgroup () != ACE_INVALID_PID
&& ACE_OS::setpgid (0,
options.getgroup ()) < 0)
- {
+ {
#if !defined (ACE_HAS_THREADS)
- // We can't emit this log message because ACE_ERROR(), etc.
- // will invoke async signal unsafe functions, which results
- // in undefined behavior in threaded programs.
- ACE_ERROR ((LM_ERROR,
+ // We can't emit this log message because ACE_ERROR(), etc.
+ // will invoke async signal unsafe functions, which results
+ // in undefined behavior in threaded programs.
+ ACE_ERROR ((LM_ERROR,
ACE_TEXT ("%p.\n"),
ACE_TEXT ("ACE_Process::spawn: setpgid failed.")));
#endif
- }
+ }
# endif /* ACE_LACKS_SETPGID */
# if !defined (ACE_LACKS_SETREGID)
@@ -370,16 +370,16 @@ ACE_Process::spawn (ACE_Process_Options &options)
|| options.getegid () != (uid_t) -1)
if (ACE_OS::setregid (options.getrgid (),
options.getegid ()) == -1)
- {
+ {
#if !defined (ACE_HAS_THREADS)
- // We can't emit this log message because ACE_ERROR(), etc.
- // will invoke async signal unsafe functions, which results
- // in undefined behavior in threaded programs.
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("%p.\n"),
- ACE_TEXT ("ACE_Process::spawn: setregid failed.")));
+ // We can't emit this log message because ACE_ERROR(), etc.
+ // will invoke async signal unsafe functions, which results
+ // in undefined behavior in threaded programs.
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("%p.\n"),
+ ACE_TEXT ("ACE_Process::spawn: setregid failed.")));
#endif
- }
+ }
# endif /* ACE_LACKS_SETREGID */
# if !defined (ACE_LACKS_SETREUID)
@@ -388,16 +388,16 @@ ACE_Process::spawn (ACE_Process_Options &options)
|| options.geteuid () != (uid_t) -1)
if (ACE_OS::setreuid (options.getruid (),
options.geteuid ()) == -1)
- {
+ {
#if !defined (ACE_HAS_THREADS)
- // We can't emit this log message because ACE_ERROR(), etc.
- // will invoke async signal unsafe functions, which results
- // in undefined behavior in threaded programs.
- ACE_ERROR ((LM_ERROR,
- ACE_TEXT ("%p.\n"),
- ACE_TEXT ("ACE_Process::spawn: setreuid failed.")));
+ // We can't emit this log message because ACE_ERROR(), etc.
+ // will invoke async signal unsafe functions, which results
+ // in undefined behavior in threaded programs.
+ ACE_ERROR ((LM_ERROR,
+ ACE_TEXT ("%p.\n"),
+ ACE_TEXT ("ACE_Process::spawn: setreuid failed.")));
#endif
- }
+ }
# endif /* ACE_LACKS_SETREUID */
this->child (ACE_OS::getppid ());