mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle
instead of pointer to CloseHandle(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
24a6752f54
commit
754462d4f1
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Nov 1 13:31:16 2009 wanabe <s.wanabe@gmail.com>
|
||||||
|
|
||||||
|
* win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle
|
||||||
|
instead of pointer to CloseHandle().
|
||||||
|
|
||||||
Sun Nov 1 13:11:27 2009 wanabe <s.wanabe@gmail.com>
|
Sun Nov 1 13:11:27 2009 wanabe <s.wanabe@gmail.com>
|
||||||
|
|
||||||
* ext/socket/socket.c (socket_s_ip_address_list): use FreeLibrary() to
|
* ext/socket/socket.c (socket_s_ip_address_list): use FreeLibrary() to
|
||||||
|
|
|
@ -2780,7 +2780,7 @@ overlapped_socket_io(BOOL input, int fd, char *buf, int len, int flags,
|
||||||
errno = map_errno(err);
|
errno = map_errno(err);
|
||||||
r = -1;
|
r = -1;
|
||||||
}
|
}
|
||||||
CloseHandle(&wol.hEvent);
|
CloseHandle(wol.hEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
@ -2926,7 +2926,7 @@ recvmsg(int fd, struct msghdr *msg, int flags)
|
||||||
errno = map_errno(err);
|
errno = map_errno(err);
|
||||||
len = -1;
|
len = -1;
|
||||||
}
|
}
|
||||||
CloseHandle(&wol.hEvent);
|
CloseHandle(wol.hEvent);
|
||||||
}
|
}
|
||||||
if (ret == SOCKET_ERROR)
|
if (ret == SOCKET_ERROR)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -3018,7 +3018,7 @@ sendmsg(int fd, const struct msghdr *msg, int flags)
|
||||||
errno = map_errno(err);
|
errno = map_errno(err);
|
||||||
len = -1;
|
len = -1;
|
||||||
}
|
}
|
||||||
CloseHandle(&wol.hEvent);
|
CloseHandle(wol.hEvent);
|
||||||
}
|
}
|
||||||
|
|
||||||
return len;
|
return len;
|
||||||
|
|
Loading…
Reference in a new issue