Method: Process::Status#to_i

Defined in:
process.c

#to_iFixnum #to_intFixnum

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"

Overloads:



391
392
393
394
395
# File 'process.c', line 391

static VALUE
pst_to_i(VALUE st)
{
    return rb_ivar_get(st, id_status);
}