groups=

Process.groups= array â array Class Public methods Set the supplemental group access list to the given Array of group IDs. Process.groups #=> [0, 1, 2, 3, 4, 6, 10, 11, 20, 26, 27] Process.groups = [27, 6, 10, 11] #=> [27, 6, 10, 11] Process.groups #=> [27, 6, 10, 11]

initgroups

Process.initgroups(username, gid) â array Class Public methods Initializes the supplemental group access list by reading the system group database and using all groups of which the given user is a member. The group with the specified gid is also added to the list. Returns the resulting Array of the gids of all the groups in the supplementary group access list. Not available on all platforms. Process.groups #=> [0, 1, 2, 3, 4, 6, 10, 11, 20, 26, 27] Process.initgroups( "mgra

kill

Process.kill(signal, pid, ...) â fixnum Class Public methods Sends the given signal to the specified process id(s) if pid is positive. If pid is zero signal is sent to all processes whose group ID is equal to the group ID of the process. signal may be an integer signal number or a POSIX signal name (either with or without a SIG prefix). If signal is negative (or starts with a minus sign), kills process groups instead of processes. Not all signals are available on all platforms.

maxgroups

Process.maxgroups â fixnum Class Public methods Returns the maximum number of gids allowed in the supplemental group access list. Process.maxgroups #=> 32

maxgroups=

Process.maxgroups= fixnum â fixnum Class Public methods Sets the maximum number of gids allowed in the supplemental group access list.

pid

Process.pid â fixnum Class Public methods Returns the process id of this process. Not available on all platforms. Process.pid #=> 27415

ppid

Process.ppid â fixnum Class Public methods Returns the process id of the parent of this process. Returns untrustworthy value on Win32/64. Not available on all platforms. puts "I am #{Process.pid}" Process.fork { puts "Dad is #{Process.ppid}" } produces: I am 27417 Dad is 27417

setpgid

Process.setpgid(pid, integer) â 0 Class Public methods Sets the process group ID of pid (0 indicates this process) to integer. Not available on all platforms.

setpgrp

Process.setpgrp â 0 Class Public methods Equivalent to setpgid(0,0). Not available on all platforms.

setpriority

Process.setpriority(kind, integer, priority) â 0 Class Public methods See Process#getpriority. Process.setpriority(Process::PRIO_USER, 0, 19) #=> 0 Process.setpriority(Process::PRIO_PROCESS, 0, 19) #=> 0 Process.getpriority(Process::PRIO_USER, 0) #=> 19 Process.getpriority(Process::PRIO_PROCESS, 0) #=> 19