Process::Sys

The Process::Sys module contains UID
and GID functions which provide direct bindings to
the system calls of the same names instead of the more-portable versions of
the same functionality found in the Process,
Process::UID, and Process::GID modules.

Public Class Methods

egid => fixnumclick to toggle source

Process::GID.eid => fixnum

Process::Sys.geteid => fixnum

Returns the effective group ID for this process. Not available on all
platforms.

Returns true if the process was created as a result of an
execve(2) system call which had either of the setuid or setgid bits set
(and extra privileges were given as a result) or if it has changed any of
its real, effective or saved user or group IDs since it began execution.

Sets the (integer) real, effective, and saved user IDs of the current
process to rid, eid, and sid respectively. A
value of -1 for any value means to leave that ID unchanged.
Not available on all platforms.

Sets the (integer) real, effective, and saved user IDs of the current
process to rid, eid, and sid respectively. A
value of -1 for any value means to leave that ID unchanged.
Not available on all platforms.