summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau2020-12-18 14:57:11 +0100
committerPaolo Bonzini2021-01-06 10:21:20 +0100
commitc8b2b7fed9850356f5d88bc7da2f1cefe57289bf (patch)
treea95b739a6de949778b48838895a721914b8c0ce0
parentconfigure: move tests/qemu-iotests/common.env generation to meson (diff)
downloadqemu-c8b2b7fed9850356f5d88bc7da2f1cefe57289bf.tar.gz
qemu-c8b2b7fed9850356f5d88bc7da2f1cefe57289bf.tar.xz
qemu-c8b2b7fed9850356f5d88bc7da2f1cefe57289bf.zip
win32: drop fd registration to the main-loop on setting non-block
Low-level fd users from QEMU use aio_set_fd_handler(), which handles event registration with the main loop; qemu_fd_register() is only needed together with the main loop's poll notifiers, of which SLIRP is the only user. This removes a dependency from oslib-win32.c to main-loop.c. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201218135712.674094-1-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--util/oslib-win32.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/util/oslib-win32.c b/util/oslib-win32.c
index 23a7c7320b..01787df74c 100644
--- a/util/oslib-win32.c
+++ b/util/oslib-win32.c
@@ -221,7 +221,6 @@ int qemu_try_set_nonblock(int fd)
if (ioctlsocket(fd, FIONBIO, &opt) != NO_ERROR) {
return -socket_error();
}
- qemu_fd_register(fd);
return 0;
}