Method: Process::Sys#getuid
- Defined in:
- process.c
#uid ⇒ Integer (private) #Process::UID.rid ⇒ Integer (private) #Process::Sys.getuid ⇒ Integer (private)
Returns the (real) user ID of this process.
Process.uid #=> 501
5807 5808 5809 5810 5811 5812 |
# File 'process.c', line 5807 static VALUE proc_getuid(VALUE obj) { rb_uid_t uid = getuid(); return UIDT2NUM(uid); } |