mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
win32/socket: introduce qemu_socket_unselect() helper
A more explicit version of qemu_socket_select() with no events. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Stefan Berger <stefanb@linux.ibm.com> Message-Id: <20230221124802.4103554-8-marcandre.lureau@redhat.com>
This commit is contained in:
@ -442,7 +442,7 @@ static void qio_channel_socket_finalize(Object *obj)
|
||||
}
|
||||
}
|
||||
#ifdef WIN32
|
||||
qemu_socket_select(ioc->fd, NULL, 0, NULL);
|
||||
qemu_socket_unselect(ioc->fd, NULL);
|
||||
#endif
|
||||
closesocket(ioc->fd);
|
||||
ioc->fd = -1;
|
||||
@ -846,7 +846,7 @@ qio_channel_socket_close(QIOChannel *ioc,
|
||||
|
||||
if (sioc->fd != -1) {
|
||||
#ifdef WIN32
|
||||
qemu_socket_select(sioc->fd, NULL, 0, NULL);
|
||||
qemu_socket_unselect(sioc->fd, NULL);
|
||||
#endif
|
||||
if (qio_channel_has_feature(ioc, QIO_CHANNEL_FEATURE_LISTEN)) {
|
||||
socket_listen_cleanup(sioc->fd, errp);
|
||||
|
Reference in New Issue
Block a user