summaryrefslogtreecommitdiff
path: root/aio.c
diff options
context:
space:
mode:
Diffstat (limited to 'aio.c')
-rw-r--r--aio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/aio.c b/aio.c
index 687e4bef08..70d3cdc5aa 100644
--- a/aio.c
+++ b/aio.c
@@ -126,6 +126,9 @@ void qemu_aio_wait(void)
walking_handlers = 1;
+ FD_ZERO(&rdfds);
+ FD_ZERO(&wrfds);
+
/* fill fd sets */
LIST_FOREACH(node, &aio_handlers, node) {
/* If there aren't pending AIO operations, don't invoke callbacks.