* win32/win32.c (socketpair_internal): need to call open_ifs_socket()

to create sockets instead of winsock's socket().
  fixed: [yarv-dev:581]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2005-08-18 02:07:28 +00:00
parent 9b76ae61f4
commit e67d73e0f3
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Thu Aug 18 11:05:36 2005 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (socketpair_internal): need to call open_ifs_socket()
to create sockets instead of winsock's socket().
fixed: [yarv-dev:581]
Wed Aug 17 23:58:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> Wed Aug 17 23:58:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (terminate_process): take String message. * eval.c (terminate_process): take String message.

View File

@ -2503,7 +2503,7 @@ socketpair_internal(int af, int type, int protocol, SOCKET *sv)
RUBY_CRITICAL({ RUBY_CRITICAL({
do { do {
svr = socket(af, type, protocol); svr = open_ifs_socket(af, type, protocol);
if (svr == INVALID_SOCKET) if (svr == INVALID_SOCKET)
break; break;
if (bind(svr, addr, len) < 0) if (bind(svr, addr, len) < 0)
@ -2513,7 +2513,7 @@ socketpair_internal(int af, int type, int protocol, SOCKET *sv)
if (type == SOCK_STREAM) if (type == SOCK_STREAM)
listen(svr, 5); listen(svr, 5);
w = socket(af, type, protocol); w = open_ifs_socket(af, type, protocol);
if (w == INVALID_SOCKET) if (w == INVALID_SOCKET)
break; break;
if (connect(w, addr, len) < 0) if (connect(w, addr, len) < 0)