[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 11/15] slirp: unregister the win32 SOCKET
From: |
marcandre . lureau |
Subject: |
[PATCH v2 11/15] slirp: unregister the win32 SOCKET |
Date: |
Tue, 21 Feb 2023 01:48:55 +0400 |
From: Marc-André Lureau <marcandre.lureau@redhat.com>
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>
---
net/slirp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/net/slirp.c b/net/slirp.c
index 0730a935ba..a7c35778a6 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)
--
2.39.1
- [PATCH v2 01/15] util: drop qemu_fork(), (continued)
- [PATCH v2 01/15] util: drop qemu_fork(), marcandre . lureau, 2023/02/20
- [PATCH v2 02/15] tests: use closesocket(), marcandre . lureau, 2023/02/20
- [PATCH v2 03/15] io: use closesocket(), marcandre . lureau, 2023/02/20
- [PATCH v2 04/15] error: add global &error_warn destination, marcandre . lureau, 2023/02/20
- [PATCH v2 07/15] aio: make aio_set_fd_poll() static to aio-posix.c, marcandre . lureau, 2023/02/20
- [PATCH v2 08/15] aio/win32: aio_set_fd_handler() only supports SOCKET, marcandre . lureau, 2023/02/20
- [PATCH v2 10/15] main-loop: remove qemu_fd_register(), win32/slirp/socket specific, marcandre . lureau, 2023/02/20
- [PATCH v2 12/15] slirp: open-code qemu_socket_(un)select(), marcandre . lureau, 2023/02/20
- [PATCH v2 09/15] RFC: build-sys: add slirp.wrap, marcandre . lureau, 2023/02/20
- [PATCH v2 11/15] slirp: unregister the win32 SOCKET,
marcandre . lureau <=
- [PATCH v2 14/15] os-posix: remove useless ioctlsocket() define, marcandre . lureau, 2023/02/20
- [PATCH v2 13/15] win32: avoid mixing SOCKET and file descriptor space, marcandre . lureau, 2023/02/20
- [PATCH v2 15/15] win32: replace closesocket() with close() wrapper, marcandre . lureau, 2023/02/20
- [PATCH v2 05/15] win32/socket: introduce qemu_socket_select() helper, marcandre . lureau, 2023/02/20
- [PATCH v2 06/15] win32/socket: introduce qemu_socket_unselect() helper, marcandre . lureau, 2023/02/20