Use g_unix_set_fd_nonblocking()
commit4d14cb0cd7868d11091acf5c930982cae4e3489c
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 29 Mar 2022 11:25:05 +0000 (29 15:25 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 3 May 2022 11:17:30 +0000 (3 15:17 +0400)
treeb04526babcdc90caa67d374211e71dc0389187de
parentc6d3bcb4b91e9ebf08f3afb8759760a9dbb2b744
Use g_unix_set_fd_nonblocking()

API available since glib 2.30. It also preserves errno.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
hw/misc/ivshmem.c
util/event_notifier-posix.c
util/main-loop.c