mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
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>
This commit is contained in:
@ -114,7 +114,7 @@ static int qemu_signal_init(Error **errp)
|
||||
return -errno;
|
||||
}
|
||||
|
||||
fcntl_setfl(sigfd, O_NONBLOCK);
|
||||
g_unix_set_fd_nonblocking(sigfd, true, NULL);
|
||||
|
||||
qemu_set_fd_handler(sigfd, sigfd_handler, NULL, (void *)(intptr_t)sigfd);
|
||||
|
||||
|
Reference in New Issue
Block a user