Method: Process::Sys.getuid

Defined in:
process.c

.uidInteger .Process::UID.ridInteger .Process::Sys.getuidInteger

Returns the (real) user ID of the current process.

Process.uid # => 1000

Overloads:



6341
6342
6343
6344
6345
6346
# File 'process.c', line 6341

static VALUE
proc_getuid(VALUE obj)
{
    rb_uid_t uid = getuid();
    return UIDT2NUM(uid);
}