summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-28 06:32:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-28 06:32:10 +0000
commit9a2104198c8a1440f20cbaaea4a04e5089444ba3 (patch)
treef9f343167ebe400fcd3e47c22c1190f13e3c217e
parent26eebdf39fbf776d0dacb4f592c488a01eabbb91 (diff)
downloadruby-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/io.c b/io.c
index 7d4cb2cad..0b4b4b64b 100644
--- a/io.c
+++ b/io.c
@@ -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;