From e67d73e0f31782f9d295338a1e0aae1b1b6d0db5 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 18 Aug 2005 02:07:28 +0000 Subject: * 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 --- win32/win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index 7345f3d2df..3b337bafd0 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2503,7 +2503,7 @@ socketpair_internal(int af, int type, int protocol, SOCKET *sv) RUBY_CRITICAL({ do { - svr = socket(af, type, protocol); + svr = open_ifs_socket(af, type, protocol); if (svr == INVALID_SOCKET) break; if (bind(svr, addr, len) < 0) @@ -2513,7 +2513,7 @@ socketpair_internal(int af, int type, int protocol, SOCKET *sv) if (type == SOCK_STREAM) listen(svr, 5); - w = socket(af, type, protocol); + w = open_ifs_socket(af, type, protocol); if (w == INVALID_SOCKET) break; if (connect(w, addr, len) < 0) -- cgit v1.2.3