Commit c5541f8a authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Don't poll for POLLOUT if there are alerted write asyncs.

parent 30a56639
......@@ -1315,7 +1315,12 @@ static int sock_get_poll_events( struct fd *fd )
if (async_queued( &sock->write_q ))
{
if (async_waiting( &sock->write_q )) ev |= POLLOUT;
/* As with read asyncs above, clear POLLOUT if we have an alerted
* async. */
if (async_waiting( &sock->write_q ))
ev |= POLLOUT;
else
ev &= ~POLLOUT;
}
else if (!sock->wr_shutdown && (mask & AFD_POLL_WRITE))
{
......
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