mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "thread.c (rb_thread_fd_select): remove unnecessary rb_fd_resize calls"
This reverts commit r64017
(git commit 2ff8562169
).
Nevermind, haven't had enough coffee, yet :x
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2ff8562169
commit
8a3ed368af
1 changed files with 9 additions and 0 deletions
9
thread.c
9
thread.c
|
@ -3965,6 +3965,15 @@ rb_thread_fd_select(int max, rb_fdset_t * read, rb_fdset_t * write, rb_fdset_t *
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (read) {
|
||||||
|
rb_fd_resize(max - 1, read);
|
||||||
|
}
|
||||||
|
if (write) {
|
||||||
|
rb_fd_resize(max - 1, write);
|
||||||
|
}
|
||||||
|
if (except) {
|
||||||
|
rb_fd_resize(max - 1, except);
|
||||||
|
}
|
||||||
return do_select(max, read, write, except, timeout);
|
return do_select(max, read, write, except, timeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue