* ext/socket/socket.c (wait_connectable): fixed wrong condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bc983c9f3e
commit
816fa8d14d
@ -1,3 +1,7 @@
|
|||||||
|
Wed Feb 9 16:33:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/socket.c (wait_connectable): fixed wrong condition.
|
||||||
|
|
||||||
Wed Feb 9 14:42:28 2005 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
|
Wed Feb 9 14:42:28 2005 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
|
||||||
|
|
||||||
* eval.c (scope_dup): add volatile not to optimize tbl.
|
* eval.c (scope_dup): add volatile not to optimize tbl.
|
||||||
|
@ -825,8 +825,11 @@ wait_connectable(fd)
|
|||||||
else if (FD_ISSET(fd, &fds_e)) {
|
else if (FD_ISSET(fd, &fds_e)) {
|
||||||
sockerrlen = sizeof(sockerr);
|
sockerrlen = sizeof(sockerr);
|
||||||
if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&sockerr,
|
if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&sockerr,
|
||||||
&sockerrlen))
|
&sockerrlen) == 0) {
|
||||||
|
if (sockerr == 0)
|
||||||
|
continue; /* workaround for winsock */
|
||||||
errno = sockerr;
|
errno = sockerr;
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user