Commit 24b64534 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Explicitly shutdown destroyed sockets to force pending poll() calls to return.

parent 28c53964
......@@ -583,7 +583,12 @@ static void sock_destroy( struct object *obj )
async_terminate_queue( &sock->write_q, STATUS_CANCELLED );
}
if (sock->event) release_object( sock->event );
if (sock->fd) release_object( sock->fd );
if (sock->fd)
{
/* shut the socket down to force pending poll() calls in the client to return */
shutdown( get_unix_fd(sock->fd), SHUT_RDWR );
release_object( sock->fd );
}
}
/* create a new and unconnected socket */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment