method

to_int

Importance_1
v1_8_7_330 - Show latest stable - 0 notes - Class: Process::Status
to_int() public

Returns the bits in stat as a Fixnum. Poking around in these bits is platform dependent.

fork { exit 0xab }         #=> 26566
Process.wait               #=> 26566
sprintf('%04x', $?.to_i)   #=> "ab00"
Show source
Register or log in to add new notes.