summaryrefslogtreecommitdiff
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
commit1dc20d9d15cf73d2b1c2994d7d5a64ba7defaed5 (patch)
treef9f343167ebe400fcd3e47c22c1190f13e3c217e
parente02270d85d58664ef9c1e6a99c1126afd349611e (diff)
* 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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/io.c b/io.c
index 7d4cb2cad5..0b4b4b64b2 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;