]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-char: Fix reconnect socket error reporting
authorCorey Minyard <cminyard@mvista.com>
Wed, 8 Oct 2014 12:11:55 +0000 (07:11 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Oct 2014 13:36:15 +0000 (15:36 +0200)
commit5008e5b7b817b5ea2b788203122cd50e7c16e599
treeffe23def7eef7e5140acf2c3a25e188964c74c15
parent5179502918d0c230afb50d8b95247de440fccdd5
qemu-char: Fix reconnect socket error reporting

If reconnect was set, errors wouldn't always be reported.
Fix that and also only report a connect error once until a
connection has been made.

The primary purpose of this is to tell the user that a
connection failed so they can know they need to figure out
what went wrong.  So we don't want to spew too much
out here, just enough so they know.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-char.c