coroutine-io: Return -errno in case of error
commit4adf4180f284caf4ea9cd83ce37085d50a52603b
authorMax Reitz <mreitz@redhat.com>
Wed, 25 Feb 2015 18:08:28 +0000 (25 13:08 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 18 Mar 2015 11:07:21 +0000 (18 12:07 +0100)
tree9104999ed7ffeaea0214628ac4d505db5c3fbc94
parent0379f474ddebfc69f42fa8231d86687cf29d997b
coroutine-io: Return -errno in case of error

In case qemu_co_sendv_recvv() fails without any data read, there is no
reason not to return the perfectly fine error number retrieved from
socket_error().

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <1424887718-10800-16-git-send-email-mreitz@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-coroutine-io.c