1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2005-07-17 04:50:45 +00:00
parent 0ede90588e
commit 2276689595

View file

@ -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()
{