]> git.ipfire.org Git - thirdparty/qemu.git/commit
pty: Fix byte loss bug when connecting to pty
authorSebastian Tanase <sebastian.tanase@openwide.fr>
Mon, 28 Jul 2014 11:39:14 +0000 (13:39 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 10 Sep 2014 14:30:58 +0000 (09:30 -0500)
commit257e9cfce21e8f2f0db99992cfc2452fb83debe8
treec0bfa57ea10bd12814d4946c64a3f747b5ad4f36
parent1aa87d3689cc2388a74c9db1dd728c6f4673836e
pty: Fix byte loss bug when connecting to pty

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 the pty is connected
after having tried to reconnect.

Signed-off-by: Sebastian Tanase <sebastian.tanase@openwide.fr>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit cf7330c759345de2efe9c0df7921189ac5ff11d3)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qemu-char.c