diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-02-21 16:47:57 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-13 15:39:31 +0400 |
commit | 21ac728498c1d529dd0abde1054703946be163da (patch) | |
tree | 729ac6cc5e9bb6e612f053fe66163fd81aed5a67 /net | |
parent | faa4ec16419c62d616fcc2dfc02d74d7fcc513d7 (diff) | |
download | qemu-21ac728498c1d529dd0abde1054703946be163da.zip qemu-21ac728498c1d529dd0abde1054703946be163da.tar.gz qemu-21ac728498c1d529dd0abde1054703946be163da.tar.bz2 |
slirp: unregister the win32 SOCKET
Presumably, this is what should happen when the SOCKET is to be removed.
(it probably worked until now because closesocket() does it implicitly,
but we never now how the slirp library could use the SOCKET later)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-Id: <20230221124802.4103554-13-marcandre.lureau@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/slirp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/slirp.c b/net/slirp.c index 0730a93..a7c3577 100644 --- a/net/slirp.c +++ b/net/slirp.c @@ -259,7 +259,9 @@ static void net_slirp_register_poll_fd(int fd, void *opaque) static void net_slirp_unregister_poll_fd(int fd, void *opaque) { - /* no qemu_fd_unregister */ +#ifdef WIN32 + qemu_socket_unselect(fd, NULL); +#endif } static void net_slirp_notify(void *opaque) |