server: Don't set the idle event when waiting for a message reply.

This commit is contained in:
Alexandre Julliard 2009-12-16 17:32:15 +01:00
parent 7d4e28480d
commit 92e704edc5
2 changed files with 2 additions and 2 deletions

View File

@ -12031,7 +12031,7 @@ static const struct
/* 0 */ { WAIT_TIMEOUT, WAIT_TIMEOUT, FALSE },
{ WAIT_TIMEOUT, 0, FALSE },
{ WAIT_TIMEOUT, 0, FALSE },
{ WAIT_TIMEOUT, WAIT_TIMEOUT, TRUE },
{ WAIT_TIMEOUT, WAIT_TIMEOUT, FALSE },
{ WAIT_TIMEOUT, WAIT_TIMEOUT, FALSE },
/* 5 */ { WAIT_TIMEOUT, 0, FALSE },
{ WAIT_TIMEOUT, 0, FALSE },

View File

@ -771,7 +771,7 @@ static int msg_queue_add_queue( struct object *obj, struct wait_queue_entry *ent
set_error( STATUS_ACCESS_DENIED );
return 0;
}
if (process->idle_event) set_event( process->idle_event );
if (process->idle_event && !(queue->wake_mask & QS_SMRESULT)) set_event( process->idle_event );
if (queue->fd && list_empty( &obj->wait_queue )) /* first on the queue */
set_fd_events( queue->fd, POLLIN );