summaryrefslogtreecommitdiffstats
path: root/ext/socket
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-17 06:33:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-17 06:33:50 +0000
commitfe5470bd65f9fb9888fd508b0265681691059054 (patch)
tree08681d28d0e918cc08444eefd241ed639fdb8bd4 /ext/socket
parentc89af9fc53fe324a9c8247a423e6c35f471e1c9d (diff)
downloadruby-fe5470bd65f9fb9888fd508b0265681691059054.tar.gz
ruby-fe5470bd65f9fb9888fd508b0265681691059054.tar.xz
ruby-fe5470bd65f9fb9888fd508b0265681691059054.zip
thread problems
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/socket.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index cadadd2b6..5bc8c7d97 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -621,17 +621,6 @@ ipaddr(sockaddr)
return ary;
}
-static void
-thread_write_select(fd)
- int fd;
-{
- fd_set fds;
-
- FD_ZERO(&fds);
- FD_SET(fd, &fds);
- rb_thread_select(fd+1, 0, &fds, 0, 0);
-}
-
static int
ruby_socket(domain, type, proto)
int domain, type, proto;
@@ -692,7 +681,7 @@ ruby_connect(fd, sockaddr, len, socks)
#ifdef EINPROGRESS
case EINPROGRESS:
#endif
- thread_write_select(fd);
+ rb_thread_fd_writable(fd);
continue;
#ifdef EISCONN