summaryrefslogtreecommitdiff
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
commit35e731649da88fda916509eb1cb0a745d772f21c (patch)
tree08681d28d0e918cc08444eefd241ed639fdb8bd4 /ext/socket
parent133ff3421a9867ec49a23df97aba3db63fc78755 (diff)
thread problems
git-svn-id: svn+ssh://ci.ruby-lang.org/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 cadadd2b6c..5bc8c7d977 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