diff options
| author | Paolo Bonzini | 2013-04-19 17:32:08 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2013-04-22 15:52:20 +0200 |
| commit | cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa (patch) | |
| tree | 45b752e501d7faf9d3fccd56cfecd8bc9659d216 /include | |
| parent | qemu-char: simplify pty polling (diff) | |
| download | qemu-cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa.tar.gz qemu-cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa.tar.xz qemu-cdbf6e165988ab9d7c01da03b9e27bb8ac0c76aa.zip | |
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 'include')
0 files changed, 0 insertions, 0 deletions
