summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2002-01-09 17:28:40 +0000
committerSteve Huston <shuston@riverace.com>2002-01-09 17:28:40 +0000
commitb263e0d0c027d4f13df099bdcf8752115190f1b2 (patch)
tree362613484c9be4b840fd46991dbcbed9763f2a65
parent634abaa4f02413d73ba080daac540582e2de6cbe (diff)
downloadATCD-b263e0d0c027d4f13df099bdcf8752115190f1b2.tar.gz
ChangeLogTag:Wed Jan 9 12:24:39 2002 Steve Huston <shuston@riverace.com>
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLogs/ChangeLog-02a6
-rw-r--r--ChangeLogs/ChangeLog-03a6
-rw-r--r--ace/Process.cpp16
4 files changed, 27 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 03c8d43b5fc..b092d12ba5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Jan 9 12:24:39 2002 Steve Huston <shuston@riverace.com>
+
+ * ace/Process.cpp (spawn): Don't attempt ACE_OS::setpgid if
+ ACE_LACKS_SETPGID is defined. Thanks to Victor Terber
+ <vterber@csksoftware.de> for reporting this.
+
Wed Jan 09 11:19:07 2002 Nanbor Wang <nanbor@cs.wustl.edu>
* ace/OS.h: Updated the comment for ACE_CE_Bridge to indicate that
diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a
index 03c8d43b5fc..b092d12ba5c 100644
--- a/ChangeLogs/ChangeLog-02a
+++ b/ChangeLogs/ChangeLog-02a
@@ -1,3 +1,9 @@
+Wed Jan 9 12:24:39 2002 Steve Huston <shuston@riverace.com>
+
+ * ace/Process.cpp (spawn): Don't attempt ACE_OS::setpgid if
+ ACE_LACKS_SETPGID is defined. Thanks to Victor Terber
+ <vterber@csksoftware.de> for reporting this.
+
Wed Jan 09 11:19:07 2002 Nanbor Wang <nanbor@cs.wustl.edu>
* ace/OS.h: Updated the comment for ACE_CE_Bridge to indicate that
diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a
index 03c8d43b5fc..b092d12ba5c 100644
--- a/ChangeLogs/ChangeLog-03a
+++ b/ChangeLogs/ChangeLog-03a
@@ -1,3 +1,9 @@
+Wed Jan 9 12:24:39 2002 Steve Huston <shuston@riverace.com>
+
+ * ace/Process.cpp (spawn): Don't attempt ACE_OS::setpgid if
+ ACE_LACKS_SETPGID is defined. Thanks to Victor Terber
+ <vterber@csksoftware.de> for reporting this.
+
Wed Jan 09 11:19:07 2002 Nanbor Wang <nanbor@cs.wustl.edu>
* ace/OS.h: Updated the comment for ACE_CE_Bridge to indicate that
diff --git a/ace/Process.cpp b/ace/Process.cpp
index 932e355072a..8e3a5831508 100644
--- a/ace/Process.cpp
+++ b/ace/Process.cpp
@@ -155,6 +155,7 @@ ACE_Process::spawn (ACE_Process_Options &options)
if (this->child_id_ == 0)
{
+# if !defined (ACE_LACKS_SETPGID)
// If we're the child and the options specified a non-default
// process group, try to set our pgid to it. This allows the
// <ACE_Process_Manager> to wait for processes by their
@@ -165,8 +166,9 @@ ACE_Process::spawn (ACE_Process_Options &options)
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("%p.\n"),
ACE_LIB_TEXT ("ACE_Process::spawn: setpgid failed.")));
+# endif /* ACE_LACKS_SETPGID */
-#if !defined (ACE_LACKS_SETREGID)
+# if !defined (ACE_LACKS_SETREGID)
if (options.getrgid () != (uid_t) -1
|| options.getegid () != (uid_t) -1)
if (ACE_OS::setregid (options.getrgid (),
@@ -174,9 +176,9 @@ ACE_Process::spawn (ACE_Process_Options &options)
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("%p.\n"),
ACE_LIB_TEXT ("ACE_Process::spawn: setregid failed.")));
-#endif /* ACE_LACKS_SETREGID */
+# endif /* ACE_LACKS_SETREGID */
-#if !defined (ACE_LACKS_SETREUID)
+# if !defined (ACE_LACKS_SETREUID)
// Set user and group id's.
if (options.getruid () != (uid_t) -1
|| options.geteuid () != (uid_t) -1)
@@ -185,7 +187,7 @@ ACE_Process::spawn (ACE_Process_Options &options)
ACE_ERROR ((LM_ERROR,
ACE_LIB_TEXT ("%p.\n"),
ACE_LIB_TEXT ("ACE_Process::spawn: setreuid failed.")));
-#endif /* ACE_LACKS_SETREUID */
+# endif /* ACE_LACKS_SETREUID */
this->child (ACE_OS::getppid ());
}
@@ -238,11 +240,11 @@ ACE_Process::spawn (ACE_Process_Options &options)
options.command_line_argv ());
else
{
-#if defined (ghs)
+# if defined (ghs)
// GreenHills 1.8.8 (for VxWorks 5.3.x) can't compile this
// code. Processes aren't supported on VxWorks anyways.
ACE_NOTSUP_RETURN (ACE_INVALID_PID);
-#else
+# else
// Add the new environment variables to the environment
// context of the context before doing an <execvp>.
for (char *const *user_env = options.env_argv ();
@@ -255,7 +257,7 @@ ACE_Process::spawn (ACE_Process_Options &options)
// the user's supplied variables.
result = ACE_OS::execvp (options.process_name (),
options.command_line_argv ());
-#endif /* ghs */
+# endif /* ghs */
}
if (result == -1)
{