[PATCH v5 2/3] server: enable POLLIN when asyncs waiting in readq
Dongwan Kim
kdw6485 at gmail.com
Fri Dec 17 00:07:19 CST 2021
fixed to call async_reselect after list_remove
so that server can wait for the event POLLIN again,
if there are waiting asyncs in queue.
Signed-off-by: Dongwan Kim <kdw6485 at gmail.com>
---
server/async.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/async.c b/server/async.c
index 5d6cc9770c3..4135e25b2d5 100644
--- a/server/async.c
+++ b/server/async.c
@@ -521,8 +521,9 @@ void async_set_result( struct object *obj, unsigned int status, apc_param_t tota
if (async->queue)
{
- async->fd = NULL;
list_remove( &async->queue_entry );
+ async_reselect( async );
+ async->fd = NULL;
async->queue = NULL;
release_object( async );
}
--
2.30.2
More information about the wine-devel
mailing list