Skip to content
Snippets Groups Projects
Commit 21ac7284 authored by Marc-André Lureau's avatar Marc-André Lureau
Browse files

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: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: default avatarStefan Berger <stefanb@linux.ibm.com>
Message-Id: <20230221124802.4103554-13-marcandre.lureau@redhat.com>
parent faa4ec16
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment