sid_available?

Process::GID.sid_available? â true or false Class Public methods Returns true if the current platform has saved group ID functionality.

switch

Process::GID.switch â fixnumProcess::GID.switch {|| block} â object Class Public methods Switch the effective and real group IDs of the current process. If a block is given, the group IDs will be switched back after the block is executed. Returns the new effective group ID if called without a block, and the return value of the block if one is given.

&

stat & num â fixnum Instance Public methods Logical AND of the bits in stat with num. fork { exit 0x37 } Process.wait sprintf('%04x', $?.to_i) #=> "3700" sprintf('%04x', $? & 0x1e00) #=> "1600"

==

stat == other â true or false Instance Public methods Returns true if the integer value of stat equals other.

>>

stat >> num â fixnum Instance Public methods Shift the bits in stat right num places. fork { exit 99 } #=> 26563 Process.wait #=> 26563 $?.to_i #=> 25344 $? >> 8 #=> 99

coredump?

stat.coredump? â true or false Instance Public methods Returns true if stat generated a coredump when it terminated. Not available on all platforms.

exited?

stat.exited? â true or false Instance Public methods Returns true if stat exited normally (for example using an exit() call or finishing the program).

exitstatus

stat.exitstatus â fixnum or nil Instance Public methods Returns the least significant eight bits of the return code of stat. Only available if exited? is true. fork { } #=> 26572 Process.wait #=> 26572 $?.exited? #=> true $?.exitstatus #=> 0 fork { exit 99 } #=> 26573 Process.wait #=> 26573 $?.exited? #=> true $?.exitstatus #=> 99

inspect

stat.inspect â string Instance Public methods Override the inspection method. system("false") p $?.inspect #=> "#<Process::Status: pid 12861 exit 1>"

pid

stat.pid â fixnum Instance Public methods Returns the process ID that this status object represents. fork { exit } #=> 26569 Process.wait #=> 26569 $?.pid #=> 26569