summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-18 02:07:28 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-18 02:07:28 +0000
commit4e74ee926569f50c330b4a70b58a1f4d90bb97bb (patch)
tree3bb0462ff70cd607fe18c14ceb689f874d44e669
parent5235431e8f8f048384323591702880c99b58d48f (diff)
downloadruby-4e74ee926569f50c330b4a70b58a1f4d90bb97bb.tar.gz
ruby-4e74ee926569f50c330b4a70b58a1f4d90bb97bb.tar.xz
ruby-4e74ee926569f50c330b4a70b58a1f4d90bb97bb.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@9002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--win32/win32.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 503675efd..1278cf46b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* eval.c (terminate_process): take String message.
diff --git a/win32/win32.c b/win32/win32.c
index 7345f3d2d..3b337bafd 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)