[Qemu-devel] [PATCH 1/2] char: io_channel_send: don't lose written bytes

2013-07-16 Thread Laszlo Ersek
The g_io_channel_write_chars() documentation states, bytes_written: The number of bytes written. This can be nonzero even if the return value is not G_IO_STATUS_NORMAL. [...] io_channel_send() could lose such bytes before. Furthermore, the (status == G_IO_STATUS_EOF)

Re: [Qemu-devel] [PATCH 1/2] char: io_channel_send: don't lose written bytes

2013-07-16 Thread Laszlo Ersek
On 07/16/13 20:57, Anthony Liguori wrote: Laszlo Ersek ler...@redhat.com writes: The g_io_channel_write_chars() documentation states, bytes_written: The number of bytes written. This can be nonzero even if the return value is not G_IO_STATUS_NORMAL. [...]

Re: [Qemu-devel] [PATCH 1/2] char: io_channel_send: don't lose written bytes

2013-07-16 Thread Anthony Liguori
Laszlo Ersek ler...@redhat.com writes: The g_io_channel_write_chars() documentation states, bytes_written: The number of bytes written. This can be nonzero even if the return value is not G_IO_STATUS_NORMAL. [...] io_channel_send() could lose such bytes before.

Re: [Qemu-devel] [PATCH 1/2] char: io_channel_send: don't lose written bytes

2013-07-16 Thread Anthony Liguori
Laszlo Ersek ler...@redhat.com writes: On 07/16/13 20:57, Anthony Liguori wrote: Laszlo Ersek ler...@redhat.com writes: The g_io_channel_write_chars() documentation states, bytes_written: The number of bytes written. This can be nonzero even if the return value is not