summaryrefslogtreecommitdiff
path: root/blockdev-nbd.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-04-19 17:32:08 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2013-04-22 08:52:20 -0500
commitcdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa (patch)
tree45b752e501d7faf9d3fccd56cfecd8bc9659d216 /blockdev-nbd.c
parent85a67692d04e15a6b7d5a0e2b9d573d8bffbe108 (diff)
downloadqemu-cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa.tar.gz
qemu-char: correct return value from chr_read functions
Even if a CharDriverState's source is blocked by the front-end, it must not be dropped. The IOWatchPoll that wraps it will take care of adding and removing it to the main loop. Only remove the source when the channel is closed; and in that case, make sure that the wrapping IOWatchPoll is removed too. These should just be theoretical bugs. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1366385529-10329-4-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'blockdev-nbd.c')
0 files changed, 0 insertions, 0 deletions