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

This commit is contained in:
Alexandre Julliard 2009-06-02 22:14:40 +02:00
parent f39e7182e1
commit 2d69ba45d7
1 changed files with 1 additions and 0 deletions

View File

@ -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 );
}