summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/introspect.py
diff options
context:
space:
mode:
authorxinhua.Cao2018-07-04 05:36:42 +0200
committerPaolo Bonzini2018-07-06 18:39:19 +0200
commit81e34930ce2b605ce9dbb54a7b846379cbb1b811 (patch)
treee1e1a49d3551e2098c30c132a7082975352716ec /scripts/qapi/introspect.py
parenti386: fix '-cpu ?' output for host cpu type (diff)
downloadqemu-81e34930ce2b605ce9dbb54a7b846379cbb1b811.tar.gz
qemu-81e34930ce2b605ce9dbb54a7b846379cbb1b811.tar.xz
qemu-81e34930ce2b605ce9dbb54a7b846379cbb1b811.zip
qemu-char: check errno together with ret < 0
In the tcp_chr_write function, we checked errno, but errno was not reset before a read or write operation. Therefore, this check of errno's actions is often incorrect after EAGAIN has occurred. we need check errno together with ret < 0. Signed-off-by: xinhua.Cao <caoxinhua@huawei.com> Message-Id: <20180704033642.15996-1-caoxinhua@huawei.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Fixes: 9fc53a10f81d3a9027b23fa810147d21be29e614 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions