exit!

Process.exit!(status=false) Class Public methods Exits the process immediately. No exit handlers are run. status is returned to the underlying system as the exit status. Process.exit!(true)

fork

Kernel.fork [{ block }] â fixnum or nilProcess.fork [{ block }] â fixnum or nil Class Public methods Creates a subprocess. If a block is specified, that block is run in the subprocess, and the subprocess terminates with a status of zero. Otherwise, the fork call returns twice, once in the parent, returning the process ID of the child, and once in the child, returning nil. The child process can exit using Kernel.exit! to avoid running any at_exit functions. The parent process

getpgid

Process.getpgid(pid) â integer Class Public methods Returns the process group ID for the given process id. Not available on all platforms. Process.getpgid(Process.ppid()) #=> 25527

getpgrp

Process.getpgrp â integer Class Public methods Returns the process group ID for this process. Not available on all platforms. Process.getpgid(0) #=> 25527 Process.getpgrp #=> 25527

getpriority

Process.getpriority(kind, integer) â fixnum Class Public methods Gets the scheduling priority for specified process, process group, or user. kind indicates the kind of entity to find: one of Process::PRIO_PGRP, Process::PRIO_USER, or Process::PRIO_PROCESS. integer is an id indicating the particular process, process group, or user (an id of 0 means current). Lower priorities are more favorable for scheduling. Not available on all platforms. Process.getpriority(Process::PRIO_USER,

getrlimit

Process.getrlimit(resource) â [cur_limit, max_limit] Class Public methods Gets the resource limit of the process. cur_limit means current (soft) limit and max_limit means maximum (hard) limit. resource indicates the kind of resource to limit. It is specified as a symbol such as :CORE, a string such as "CORE" or a constant such as Process::RLIMIT_CORE. See ::setrlimit for details. cur_limit and max_limit may be Process::RLIM_INFINITY, Process::RLIM_SAVED_MAX or Process::RLIM_SAVE

getsid

Process.getsid() â integerProcess.getsid(pid) â integer Class Public methods Returns the session ID for for the given process id. If not give, return current process sid. Not available on all platforms. Process.getsid() #=> 27422 Process.getsid(0) #=> 27422 Process.getsid(Process.pid()) #=> 27422

gid

Process.gid â fixnumProcess::GID.rid â fixnumProcess::Sys.getgid â fixnum Class Public methods Returns the (real) group ID for this process. Process.gid #=> 500

gid=

Process.gid= fixnum â fixnum Class Public methods Sets the group ID for this process.

groups

Process.groups â array Class Public methods Get an Array of the gids of groups in the supplemental group access list for this process. Process.groups #=> [27, 6, 10, 11]