зеркало из https://github.com/github/ruby.git
* thread.c (rb_wait_for_single_fd): Clean up fds.revents every time
before calling ppoll(2). [Bug #12575] [ruby-dev:49725] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
558b9d05b2
Коммит
79e46488e8
|
@ -1,3 +1,8 @@
|
|||
Fri Jul 8 21:49:28 2016 Naohisa Goto <ngotogenome@gmail.com>
|
||||
|
||||
* thread.c (rb_wait_for_single_fd): Clean up fds.revents every time
|
||||
before calling ppoll(2). [Bug #12575] [ruby-dev:49725]
|
||||
|
||||
Fri Jul 8 14:16:48 2016 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* vm_args.c (vm_caller_setup_arg_block): call rb_sym_to_proc()
|
||||
|
|
1
thread.c
1
thread.c
|
@ -3851,6 +3851,7 @@ rb_wait_for_single_fd(int fd, int events, struct timeval *tv)
|
|||
fds.events = (short)events;
|
||||
|
||||
do {
|
||||
fds.revents = 0;
|
||||
lerrno = 0;
|
||||
BLOCKING_REGION({
|
||||
result = ppoll(&fds, 1, timeout, NULL);
|
||||
|
|
Загрузка…
Ссылка в новой задаче