mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
oslib-posix: rename socket_set_nonblock() to qemu_set_nonblock()
The fcntl(fd, F_SETFL, O_NONBLOCK) flag is not specific to sockets. Rename to qemu_set_nonblock() just like qemu_set_cloexec(). Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
5d45de9796
commit
f9e8cacc55
14 changed files with 27 additions and 27 deletions
2
savevm.c
2
savevm.c
|
@ -422,7 +422,7 @@ QEMUFile *qemu_fopen_socket(int fd, const char *mode)
|
|||
|
||||
s->fd = fd;
|
||||
if (mode[0] == 'w') {
|
||||
socket_set_block(s->fd);
|
||||
qemu_set_block(s->fd);
|
||||
s->file = qemu_fopen_ops(s, &socket_write_ops);
|
||||
} else {
|
||||
s->file = qemu_fopen_ops(s, &socket_read_ops);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue