Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

Process::Sys.setresgid

(::Integer rid, ::Integer eid, ::Integer sid) -> nil
Process::Sys.setresgid(rid, eid, sid) → nil

Sets the (group) 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.

See also .setregid .setresuid .setgid .setreuid also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0