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:
parent
0ede90588e
commit
2276689595
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue