1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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:
usa 2005-02-09 07:34:56 +00:00
parent bc983c9f3e
commit 816fa8d14d
2 changed files with 8 additions and 1 deletions

View file

@ -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>
* eval.c (scope_dup): add volatile not to optimize tbl.

View file

@ -825,8 +825,11 @@ wait_connectable(fd)
else if (FD_ISSET(fd, &fds_e)) {
sockerrlen = sizeof(sockerr);
if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&sockerr,
&sockerrlen))
&sockerrlen) == 0) {
if (sockerr == 0)
continue; /* workaround for winsock */
errno = sockerr;
}
return -1;
}
}