diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-28 06:32:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-28 06:32:10 +0000 |
commit | 9a2104198c8a1440f20cbaaea4a04e5089444ba3 (patch) | |
tree | f9f343167ebe400fcd3e47c22c1190f13e3c217e | |
parent | 26eebdf39fbf776d0dacb4f592c488a01eabbb91 (diff) | |
download | ruby-9a2104198c8a1440f20cbaaea4a04e5089444ba3.tar.gz ruby-9a2104198c8a1440f20cbaaea4a04e5089444ba3.tar.xz ruby-9a2104198c8a1440f20cbaaea4a04e5089444ba3.zip |
* io.c (rb_getc): same as rb_read_check.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | io.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2422,9 +2422,7 @@ rb_getc(FILE *f) { int c; - if (!STDIO_READ_DATA_PENDING(f)) { - rb_thread_wait_fd(fileno(f)); - } + rb_read_check(f); TRAP_BEG; c = getc(f); TRAP_END; |