mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06: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:
parent
c6d3bcb4b9
commit
4d14cb0cd7
3 changed files with 4 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue