thread problems

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-05-17 06:33:50 +00:00
parent 133ff3421a
commit 35e731649d
7 changed files with 62 additions and 23 deletions

View file

@ -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