« Previous | Next » 

Revision 684a096e

ID684a096eafbe37ab6c9a1fdb5e0185f04098b166

Added by Anthony Liguori about 11 years ago

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 <>
Signed-off-by: Anthony Liguori <>
Message-id:

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences