Method: IO#pid
- Defined in:
- io.c
#pid ⇒ Fixnum
2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 |
# File 'io.c', line 2008
static VALUE
rb_io_pid(VALUE io)
{
rb_io_t *fptr;
GetOpenFile(io, fptr);
if (!fptr->pid)
return Qnil;
return PIDT2NUM(fptr->pid);
}
|