* Removed bogus select notifications in socket_close(). This is really
not necessary, since the VFS makes sure (or should at least) that all events are deselected when close() is called. ~0 isn't a valid event anyway. * Removed delete_select_sync_pool() in socket_free(). It's not necessary, since the select_sync_pool is auto-destroyed when the last event has been deselected (which the VFS should take care of). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25265 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -221,12 +221,6 @@ status_t
|
|||||||
socket_close(net_socket *_socket)
|
socket_close(net_socket *_socket)
|
||||||
{
|
{
|
||||||
net_socket_private *socket = (net_socket_private *)_socket;
|
net_socket_private *socket = (net_socket_private *)_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);
|
return socket->first_info->close(socket->first_protocol);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -478,7 +472,6 @@ socket_delete(net_socket *_socket)
|
|||||||
|
|
||||||
put_domain_protocols(socket);
|
put_domain_protocols(socket);
|
||||||
benaphore_destroy(&socket->lock);
|
benaphore_destroy(&socket->lock);
|
||||||
delete_select_sync_pool(socket->select_pool);
|
|
||||||
delete socket;
|
delete socket;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user