summaryrefslogtreecommitdiffstats
path: root/ext/pty
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-24 04:34:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-24 04:34:26 +0000
commit4ff5e66cd4f6dfa89f81219b194512eefead18bd (patch)
treea7ed03dd3f6442635f694c4367bcd94be57f6dbd /ext/pty
parentb2b6240416862f977e69e84d4137ba4a13ab5e27 (diff)
downloadruby-4ff5e66cd4f6dfa89f81219b194512eefead18bd.tar.gz
ruby-4ff5e66cd4f6dfa89f81219b194512eefead18bd.tar.xz
ruby-4ff5e66cd4f6dfa89f81219b194512eefead18bd.zip
2000-05-24
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty')
-rw-r--r--ext/pty/pty.c2
1 files changed, 1 insertions, 1 deletions
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;