From 2d2544c8e66ce6cc0973611145d442a165a9c663 Mon Sep 17 00:00:00 2001 From: kosaki Date: Sat, 30 Apr 2011 11:15:15 +0000 Subject: * include/ruby/intern.h (rb_thread_select): mark as deprecated. * ext/io/wait/wait.c (wait_readable): use rb_thread_fd_select instead of rb_thread_select. * ext/socket/init.c (wait_connectable0): ditto. * ext/readline/readline.c (readline_event): ditto. * io.c (rb_io_wait_readable, wait_readable, rb_io_wait_writable, wait_writable): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/io/wait/wait.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/io') diff --git a/ext/io/wait/wait.c b/ext/io/wait/wait.c index 13b522bdf5..93de56000b 100644 --- a/ext/io/wait/wait.c +++ b/ext/io/wait/wait.c @@ -100,7 +100,7 @@ wait_readable(VALUE p) struct wait_readable_arg *arg = (struct wait_readable_arg *)p; rb_fdset_t *fds = &arg->fds; - return (VALUE)rb_thread_select(rb_fd_max(fds), rb_fd_ptr(fds), NULL, NULL, arg->timeout); + return (VALUE)rb_thread_fd_select(rb_fd_max(fds), fds, NULL, NULL, arg->timeout); } #endif @@ -143,7 +143,7 @@ io_wait(int argc, VALUE *argv, VALUE io) i = (int)rb_ensure(wait_readable, (VALUE)&arg, (VALUE (*)_((VALUE)))rb_fd_term, (VALUE)&arg.fds); #else - i = rb_thread_select(fd + 1, rb_fd_ptr(&arg.fds), NULL, NULL, arg.timeout); + i = rb_thread_fd_select(fd + 1, &arg.fds, NULL, NULL, arg.timeout); #endif if (i < 0) rb_sys_fail(0); -- cgit v1.2.3