Now notifies all pending selects when closing the socket.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19018 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-10-07 12:37:13 +00:00
parent a7028ce680
commit ee50138fcd

View File

@ -71,6 +71,11 @@ err1:
status_t
socket_close(net_socket *socket)
{
if (socket->select_pool) {
// notify all pending selects
notify_select_event_pool(socket->select_pool, ~0);
}
return socket->first_info->close(socket->first_protocol);
}