Commit 2d69ba45 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Reset events on the message queue fd to avoid busy looping when the thread is suspended.

parent f39e7182
......@@ -872,6 +872,7 @@ static void msg_queue_poll_event( struct fd *fd, int event )
assert( queue->obj.ops == &msg_queue_ops );
if (event & (POLLERR | POLLHUP)) set_fd_events( fd, -1 );
else set_fd_events( queue->fd, 0 );
wake_up( &queue->obj, 0 );
}
......
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