diff --git a/aio.c b/aio.c index 687e4bef08b533caf9e9f8423a28f104476fbd9c..70d3cdc5aa3fd1a3b10fc0d8b9717ef734a9fcbb 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.