| commit | 2d69ba45d7b815caafcde13a886ebbed45561dba | [log] [tgz] |
|---|---|---|
| author | Alexandre Julliard <julliard@winehq.org> | Tue Jun 02 22:14:40 2009 +0200 |
| committer | Alexandre Julliard <julliard@winehq.org> | Wed Jun 03 11:28:18 2009 +0200 |
| tree | beedcf4288b0f9a4ebb9c89716a18ddfbc0ab756 | |
| parent | f39e7182e16f9d458e01e1af6c80e36fbbd0fe64 [diff] [blame] |
server: Reset events on the message queue fd to avoid busy looping when the thread is suspended.
diff --git a/server/queue.c b/server/queue.c index bc0aea7..e603b16 100644 --- a/server/queue.c +++ b/server/queue.c
@@ -872,6 +872,7 @@ 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 ); }