diff options
Diffstat (limited to 'ACE/ace/Process.cpp')
-rw-r--r-- | ACE/ace/Process.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ACE/ace/Process.cpp b/ACE/ace/Process.cpp index ed29ffd5c5a..ea1c4f10c9c 100644 --- a/ACE/ace/Process.cpp +++ b/ACE/ace/Process.cpp @@ -407,8 +407,8 @@ ACE_Process::spawn (ACE_Process_Options &options) # endif /* ACE_LACKS_SETPGID */ # if !defined (ACE_LACKS_SETREGID) - if (options.getrgid () != (uid_t) -1 - || options.getegid () != (uid_t) -1) + if (options.getrgid () != (gid_t) -1 + || options.getegid () != (gid_t) -1) if (ACE_OS::setregid (options.getrgid (), options.getegid ()) == -1) { @@ -836,8 +836,8 @@ ACE_Process_Options::ACE_Process_Options (bool inherit_environment, stderr_ (ACE_INVALID_HANDLE), ruid_ ((uid_t) -1), euid_ ((uid_t) -1), - rgid_ ((uid_t) -1), - egid_ ((uid_t) -1), + rgid_ ((gid_t) -1), + egid_ ((gid_t) -1), #endif /* ACE_WIN32 */ handle_inheritance_ (true), set_handles_called_ (0), |