diff options
author | Marc-André Lureau | 2022-04-25 15:33:47 +0200 |
---|---|---|
committer | Marc-André Lureau | 2022-05-03 13:53:20 +0200 |
commit | ff5927baa7ffb9c97873a071f6a8d85a3584182b (patch) | |
tree | fac232e795ec7f76ad8ca15a59a7d8b908e7a225 /qga/channel-posix.c | |
parent | tests: replace qemu_set_nonblock() (diff) | |
download | qemu-ff5927baa7ffb9c97873a071f6a8d85a3584182b.tar.gz qemu-ff5927baa7ffb9c97873a071f6a8d85a3584182b.tar.xz qemu-ff5927baa7ffb9c97873a071f6a8d85a3584182b.zip |
util: rename qemu_*block() socket functions
The qemu_*block() functions are meant to be be used with sockets (the
win32 implementation expects SOCKET)
Over time, those functions where used with Win32 SOCKET or
file-descriptors interchangeably. But for portability, they must only be
used with socket-like file-descriptors. FDs can use
g_unix_set_fd_nonblocking() instead.
Rename the functions with "socket" in the name to prevent bad usages.
This is effectively reverting commit f9e8cacc5557e43 ("oslib-posix:
rename socket_set_nonblock() to qemu_set_nonblock()").
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qga/channel-posix.c')
-rw-r--r-- | qga/channel-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/channel-posix.c b/qga/channel-posix.c index 0373975360..a996858e24 100644 --- a/qga/channel-posix.c +++ b/qga/channel-posix.c @@ -34,7 +34,7 @@ static gboolean ga_channel_listen_accept(GIOChannel *channel, g_warning("error converting fd to gsocket: %s", strerror(errno)); goto out; } - qemu_set_nonblock(client_fd); + qemu_socket_set_nonblock(client_fd); ret = ga_channel_client_add(c, client_fd); if (ret) { g_warning("error setting up connection"); |