* fhandler_socket.cc (fhandler_socket::close): Add error handling.
Fixed ChangeLog entries.
This commit is contained in:
parent
fc79ce17c7
commit
05230a4a29
@ -1,6 +1,10 @@
|
||||
2001-10-30 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* (fhandler_socket::dup): Revert previous change.
|
||||
* fhandler_socket.cc (fhandler_socket::close): Add error handling.
|
||||
|
||||
2001-10-30 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_socket.cc (fhandler_socket::dup): Revert previous change.
|
||||
|
||||
2001-10-30 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
@ -10,6 +14,8 @@
|
||||
more debugging output.
|
||||
(fhandler_socket::dup): Allocate new space for prot_info_ptr for
|
||||
duplicated entry.
|
||||
(fhandler_socket::close): Loop closesocket() as long as WSAEWOULDBLOCK
|
||||
is returned.
|
||||
* syscalls.cc (stat_worker): Always delete fh if it has been created.
|
||||
|
||||
2001-10-29 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
@ -289,9 +289,14 @@ fhandler_socket::close ()
|
||||
setsockopt (get_socket (), SOL_SOCKET, SO_LINGER,
|
||||
(const char *)&linger, sizeof linger);
|
||||
|
||||
while (closesocket (get_socket ())
|
||||
while ((res = closesocket (get_socket ()))
|
||||
&& WSAGetLastError () == WSAEWOULDBLOCK)
|
||||
continue;
|
||||
if (res)
|
||||
{
|
||||
set_winsock_errno ();
|
||||
res = -1;
|
||||
}
|
||||
|
||||
close_secret_event ();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user