Re: [Qemu-devel] [PATCH] pty: Fix byte loss bug when connecting to pty

2014-09-02 Thread Michael Roth
Quoting Paolo Bonzini (2014-07-28 07:59:19) > Il 28/07/2014 13:39, Sebastian Tanase ha scritto: > > When trying to print data to the pty, we first check if it is connected. > > If not, we try to reconnect, but we drop the pending data even if we > > have successfully reconnected; this makes us lose

Re: [Qemu-devel] [PATCH] pty: Fix byte loss bug when connecting to pty

2014-07-28 Thread Paolo Bonzini
Il 28/07/2014 13:39, Sebastian Tanase ha scritto: > When trying to print data to the pty, we first check if it is connected. > If not, we try to reconnect, but we drop the pending data even if we > have successfully reconnected; this makes us lose the first byte of the very > first transmission. >

[Qemu-devel] [PATCH] pty: Fix byte loss bug when connecting to pty

2014-07-28 Thread Sebastian Tanase
When trying to print data to the pty, we first check if it is connected. If not, we try to reconnect, but we drop the pending data even if we have successfully reconnected; this makes us lose the first byte of the very first transmission. This small fix addresses the issue by checking once more if