summaryrefslogtreecommitdiff
path: root/ext/io
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-17 04:50:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-17 04:50:45 +0000
commit227668959539a269b4a8186b1fdb92a5716bf6d3 (patch)
tree5063d32c22a90d65bda66f2c8d7b7e90c457a745 /ext/io
parent0ede90588e04c05e33b0648ae957c1389cff6ab7 (diff)
* ext/io/wait/wait.c: fixed commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io')
-rw-r--r--ext/io/wait/wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/wait/wait.c b/ext/io/wait/wait.c
index 41ba052850..75cfafe46e 100644
--- a/ext/io/wait/wait.c
+++ b/ext/io/wait/wait.c
@@ -104,12 +104,12 @@ io_wait(argc, argv, io)
if (rb_thread_select(fd + 1, &rd, NULL, NULL, tp) < 0)
rb_sys_fail(0);
rb_io_check_closed(fptr);
+ if (!FIONREAD_POSSIBLE_P(fptr->fd)) return Qfalse;
if (ioctl(fileno(fp), FIONREAD, &n)) rb_sys_fail(0);
if (n > 0) return io;
return Qnil;
}
- if (!FIONREAD_POSSIBLE_P(fptr->fd)) return Qfalse;
void
Init_wait()
{