diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-29 11:39:50 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-04-02 08:13:58 -0500 |
commit | 684a096eafbe37ab6c9a1fdb5e0185f04098b166 (patch) | |
tree | dbb80d4202e86b81210825d6fb69ec964f3d6486 /include | |
parent | d819cdccffe08f6e12b4c2dec8f4aa381f0cd687 (diff) | |
download | qemu-684a096eafbe37ab6c9a1fdb5e0185f04098b166.zip qemu-684a096eafbe37ab6c9a1fdb5e0185f04098b166.tar.gz qemu-684a096eafbe37ab6c9a1fdb5e0185f04098b166.tar.bz2 |
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
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions