mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
0c2787b9b2
commit
09723b98f7
1 changed files with 3 additions and 0 deletions
|
@ -517,6 +517,9 @@ console_getch(int argc, VALUE *argv, VALUE io)
|
|||
if (w < 0) rb_eof_error();
|
||||
if (!(w & RB_WAITFD_IN)) return Qnil;
|
||||
}
|
||||
else {
|
||||
rb_warning("vtime option ignored if intr flag is unset");
|
||||
}
|
||||
}
|
||||
len = (int)rb_thread_io_blocking_region(nogvl_getch, wbuf, fptr->fd);
|
||||
switch (len) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue