mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
thread problems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
133ff3421a
commit
35e731649d
7 changed files with 62 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue