[PATCH v9 2/3] server: enable POLLIN when asyncs waiting in readq

Dongwan Kim kdw6485 at gmail.com
Fri Dec 24 01:59:35 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 1a564ff1a69..119e03440e4 100644
--- a/server/async.c
+++ b/server/async.c
@@ -513,8 +513,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