summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-30 11:15:15 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-30 11:15:15 +0000
commit2d2544c8e66ce6cc0973611145d442a165a9c663 (patch)
tree0dacf69ae87b70cb08438fcc53ed7b5b8959dee1 /ext/readline
parent4c926e9f15c42ef789e0af5ca2f15dc6188d1b3c (diff)
* 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
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/readline.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index a313271..cb17d9c 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -145,11 +145,11 @@ readline_event(void)
#if BUSY_WAIT
rb_thread_schedule();
#else
- fd_set rset;
+ rb_fdset_t fds;
- FD_ZERO(&rset);
- FD_SET(fileno(rl_instream), &rset);
- rb_thread_select(fileno(rl_instream) + 1, &rset, NULL, NULL, NULL);
+ rb_fd_init(fds);
+ rb_fd_set(fileno(rl_instream), &fds);
+ rb_thread_fd_select(fileno(rl_instream) + 1, &fds, NULL, NULL, NULL);
return 0;
#endif
}