diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-07-07 17:35:27 +0530 |
---|---|---|
committer | Amit Shah <amit.shah@redhat.com> | 2011-07-18 15:30:15 +0530 |
commit | 0219d73283b6399a737ef5a098f849b956618eaa (patch) | |
tree | 11f0cd8b53d9e3141a9a33d3d0f8e89059c557a0 /linux-user | |
parent | 95c9cde2dff9de9f4afa0450697bd70f56715be1 (diff) | |
download | qemu-0219d73283b6399a737ef5a098f849b956618eaa.tar.gz qemu-0219d73283b6399a737ef5a098f849b956618eaa.tar.bz2 qemu-0219d73283b6399a737ef5a098f849b956618eaa.zip |
virtio-console: Prevent abort()s in case of host chardev close
A host chardev could close just before the guest sends some data to be
written. This will cause an -EPIPE error. This shouldn't be propagated
to virtio-serial-bus.
Ideally we should close the port once -EPIPE is received, but since the
chardev interface doesn't return such meaningful values to its users,
all we get is -1 for any kind of error. Just return 0 for now and wait
for chardevs to return better error messages to act better on the return
messages.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions