From 4ff5e66cd4f6dfa89f81219b194512eefead18bd Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 24 May 2000 04:34:26 +0000 Subject: 2000-05-24 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/pty/pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pty') diff --git a/ext/pty/pty.c b/ext/pty/pty.c index b8c4e9aca..52257b056 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; -- cgit