mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:51 +00:00
treewide: use qemu_set_blocking instead of g_unix_set_fd_nonblocking
Instead of open-coded g_unix_set_fd_nonblocking() calls, use QEMU wrapper qemu_set_blocking(). Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> [DB: fix missing closing ) in tap-bsd.c, remove now unused GError var] Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
committed by
Daniel P. Berrangé
parent
5d1d32ce9d
commit
6f607941b1
@@ -316,8 +316,7 @@ static void input_linux_complete(UserCreatable *uc, Error **errp)
|
||||
error_setg_file_open(errp, errno, il->evdev);
|
||||
return;
|
||||
}
|
||||
if (!g_unix_set_fd_nonblocking(il->fd, true, NULL)) {
|
||||
error_setg_errno(errp, errno, "Failed to set FD nonblocking");
|
||||
if (!qemu_set_blocking(il->fd, false, errp)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user