diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-02-21 16:47:52 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-13 15:23:37 +0400 |
commit | a4aafea26152b58c61c8105ffc574661cdfeb17b (patch) | |
tree | ef3d02c05fd0e5574c2132327b3bf7b54d5a2743 /io | |
parent | f5fd677ae7cf7cfb07b12adbfd479c460ddc3ac5 (diff) | |
download | qemu-a4aafea26152b58c61c8105ffc574661cdfeb17b.zip qemu-a4aafea26152b58c61c8105ffc574661cdfeb17b.tar.gz qemu-a4aafea26152b58c61c8105ffc574661cdfeb17b.tar.bz2 |
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>
Diffstat (limited to 'io')
-rw-r--r-- | io/channel-socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io/channel-socket.c b/io/channel-socket.c index 0bc29c4..03757c7 100644 --- a/io/channel-socket.c +++ b/io/channel-socket.c @@ -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); |