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

readline.c: fix waiting fucntion

* ext/readline/readline.c (getc_body): use
  rb_w32_wait_events_blocking in block region.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-03-06 08:10:20 +00:00
parent 5e62a1bd29
commit f96c171ebc

View file

@ -182,7 +182,7 @@ getc_body(struct getc_struct *p)
ReadConsoleInput(h, &ir, 1, &n);
}
} else {
rb_w32_wait_events(&h, 1, INFINITE);
rb_w32_wait_events_blocking(&h, 1, INFINITE);
}
} else {
break;