diff options
Diffstat (limited to 'ext/pty')
-rw-r--r-- | ext/pty/pty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index b8c4e9acae..52257b0560 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -457,7 +457,7 @@ pty_getpty(self, shell) rb_ary_store(res,1,(VALUE)wport); rb_ary_store(res,2,INT2FIX(info.child_pid)); - if (rb_iterator_p()) { + if (rb_block_given_p()) { rb_yield((VALUE)res); reset_signal_action(); return Qnil; |