]> git.proxmox.com Git - qemu.git/commit
qemu-char: rewrite io_channel_send_all and drop the '_all' suffix
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Mar 2013 16:39:50 +0000 (11:39 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 2 Apr 2013 13:13:58 +0000 (08:13 -0500)
commit684a096eafbe37ab6c9a1fdb5e0185f04098b166
treedbb80d4202e86b81210825d6fb69ec964f3d6486
parentd819cdccffe08f6e12b4c2dec8f4aa381f0cd687
qemu-char: rewrite io_channel_send_all and drop the '_all' suffix

The current code is oddly written and have equally odd semantics.
Despite the '_all' suffix, upon EAGAIN the result will be a partial
write but instead of returning the partial write, we return EAGAIN.

Change the behavior to write as much as we can until we get an EAGAIN
returning a partial write if we do.

Reported-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-id: 1364575190-731-1-git-send-email-aliguori@us.ibm.com
qemu-char.c