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 | 1dc20d9d15cf73d2b1c2994d7d5a64ba7defaed5 (patch) | |
tree | f9f343167ebe400fcd3e47c22c1190f13e3c217e | |
parent | e02270d85d58664ef9c1e6a99c1126afd349611e (diff) | |
download | ruby-1dc20d9d15cf73d2b1c2994d7d5a64ba7defaed5.tar.gz |
* io.c (rb_getc): same as rb_read_check.
git-svn-id: svn+ssh://ci.ruby-lang.org/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; |