summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;