Revert "thread.c (rb_thread_fd_select): remove unnecessary rb_fd_resize calls"
This reverts commit r64017 (git commit 2ff85621690f4f5b0dff9226ac68418a950a6919). 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
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;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user