]> Git Repo - qemu.git/commit
qemu-char: check errno together with ret < 0
authorxinhua.Cao <[email protected]>
Wed, 4 Jul 2018 03:36:42 +0000 (11:36 +0800)
committerPaolo Bonzini <[email protected]>
Fri, 6 Jul 2018 16:39:19 +0000 (18:39 +0200)
commit81e34930ce2b605ce9dbb54a7b846379cbb1b811
treee1e1a49d3551e2098c30c132a7082975352716ec
parent02693cc4f4aacf82cb73559dfa9af76ce4b13d11
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 <[email protected]>
Message-Id: <20180704033642[email protected]>
Reviewed-by: Marc-AndrĂ© Lureau <[email protected]>
Reviewed-by: Daniel P. BerrangĂ© <[email protected]>
Fixes: 9fc53a10f81d3a9027b23fa810147d21be29e614
Signed-off-by: Paolo Bonzini <[email protected]>
chardev/char-socket.c
This page took 0.026216 seconds and 4 git commands to generate.