[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH RFC 1/4] aio: Introduce aio_set_fd_handler_pri
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH RFC 1/4] aio: Introduce aio_set_fd_handler_pri |
Date: |
Tue, 30 Jun 2015 21:19:42 +0800 |
G_IO_PRI event is watched by slirp, add support of that to make future
refactoring possible.
Signed-off-by: Fam Zheng <address@hidden>
---
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