* fhandler_socket.cc (fhandler_socket::fixup_after_exec): Close
socket only when not using Winsock2.
This commit is contained in:
parent
8e54fb88f3
commit
a2db3c9288
@ -1,3 +1,8 @@
|
||||
Thu Sep 20 13:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_socket.cc (fhandler_socket::fixup_after_exec): Close
|
||||
socket only when not using Winsock2.
|
||||
|
||||
Thu Sep 20 13:20:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler.h (fhandler_socket::fixup_after_exec): Remove inline
|
||||
|
@ -214,9 +214,10 @@ fhandler_socket::fixup_after_fork (HANDLE parent)
|
||||
void
|
||||
fhandler_socket::fixup_after_exec (HANDLE parent)
|
||||
{
|
||||
extern WSADATA wsadata;
|
||||
if (!get_close_on_exec ())
|
||||
fixup_after_fork (parent);
|
||||
else
|
||||
else if (wsadata.wVersion < 512) /* < Winsock 2.0 */
|
||||
closesocket (get_socket ());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user