diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-13 03:07:56 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-13 03:07:56 +0000 |
commit | 871d2f079661323a7645b388eb5ae8d7eeb3117c (patch) | |
tree | e7f554ea48fd462199e312911d391061e2762fdb /gdbstub.c | |
parent | 7526aa2d0082558bc4e89dab9f7a37b0d509a71a (diff) | |
download | qemu-871d2f079661323a7645b388eb5ae8d7eeb3117c.zip qemu-871d2f079661323a7645b388eb5ae8d7eeb3117c.tar.gz qemu-871d2f079661323a7645b388eb5ae8d7eeb3117c.tar.bz2 |
Fix some issues with QEMUFile
This patch allows QEMUFile's read and write operations to return
negative error codes. This is necessary to detect things like closed
streams during live migration.
It also removes unused code for QEMUFileFD write path. Finally, it
makes sure to avoid attempting to flush an output buffer if the file
is only being used for input. This was spotted by Uri Lublin.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5474 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'gdbstub.c')
0 files changed, 0 insertions, 0 deletions