diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-01 03:18:03 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-02-01 03:18:03 +0000 |
commit | 683839054fad9935d362e5228d1d93e78c340699 (patch) | |
tree | a08815f2fc153a6f97648cbd1e882ba70cc2d0dd /io.c | |
parent | e4b53b22228d935847b72e8f9ab0f49a15b54215 (diff) | |
download | ruby-683839054fad9935d362e5228d1d93e78c340699.tar.gz |
2000-02-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -167,6 +167,15 @@ rb_read_pending(fp) return READ_DATA_PENDING(fp); } +void +rb_read_check(fp) + FILE *fp; +{ + if (!READ_DATA_PENDING(fp)) { + rb_thread_wait_fd(fileno(fp)); + } +} + /* writing functions */ static VALUE io_write(io, str) |