Modified: MacRuby/branches/experimental/io.c (1167 => 1168)
--- MacRuby/branches/experimental/io.c 2009-03-26 13:33:03 UTC (rev 1167)
+++ MacRuby/branches/experimental/io.c 2009-03-26 17:37:09 UTC (rev 1168)
@@ -782,7 +782,8 @@
static VALUE
rb_io_pid(VALUE io, SEL sel)
{
- rb_notimplement();
+ rb_io_t *io_struct = ExtractIOStruct(io);
+ return ((io_struct->pid == -1) ? Qnil : INT2FIX(io_struct->pid));
}
@@ -3059,7 +3060,7 @@
static VALUE
rb_io_s_pipe(VALUE recv, SEL sel, int argc, VALUE *argv)
{
-rb_notimplement();
+ rb_notimplement();
}
/*