]> git.proxmox.com Git - mirror_qemu.git/blobdiff - chardev/char-socket.c
QIOChannel: Add flags on io_writev and introduce io_flush callback
[mirror_qemu.git] / chardev / char-socket.c
index fab2d791d43d31bd8c11e11f254f60c19d6c19e4..dc4e218eeb6ada5115d801817326bd73d3e90b32 100644 (file)
@@ -311,7 +311,7 @@ static ssize_t tcp_chr_recv(Chardev *chr, char *buf, size_t len)
         }
 
         /* O_NONBLOCK is preserved across SCM_RIGHTS so reset it */
-        qemu_set_block(fd);
+        qemu_socket_set_block(fd);
 
 #ifndef MSG_CMSG_CLOEXEC
         qemu_set_cloexec(fd);