G_IO_PRI event is watched by slirp, add support of that to make future
refactoring possible.

Signed-off-by: Fam Zheng <f...@redhat.com>
---
 aio-posix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aio-posix.c b/aio-posix.c
index a633c6e..f22657e 100644
--- a/aio-posix.c
+++ b/aio-posix.c
@@ -63,7 +63,7 @@ void aio_set_fd_handler_pri(AioContext *ctx,
     node = find_aio_handler(ctx, fd);
 
     /* Are we deleting the fd handler? */
-    if (!io_read && !io_write) {
+    if (!io_read && !io_write && !io_read_pri) {
         if (node) {
             g_source_remove_poll(&ctx->source, &node->pfd);
 
-- 
2.4.3


Reply via email to