Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Process::GID.re_exchangeable?
() -> bool
Process::GID.re_exchangeable? → true or false
process.c
View on GitHub ↗
static VALUE
p_gid_exchangeable(VALUE _)
{
#if defined(HAVE_SETRESGID)
return Qtrue;
#elif defined(HAVE_SETREGID) && !defined(OBSOLETE_SETREGID)
return Qtrue;
#else
return Qfalse;
#endif
}
Returns true if the real and effective group IDs of a process may be exchanged on the current platform.
See also
.re_exchange
.rid
.grant_privilege
.sid_available?
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0