diff options
author | 2017-06-05 17:19:35 +0100 | |
---|---|---|
committer | 2017-07-15 14:28:25 +0200 | |
commit | 0b466065eba289c437e3edc2e97144fc5cd6a889 (patch) | |
tree | e4fe50d73589d8ee0bd2c9b671ad4d0cda876bcd /bsd-user/bsdload.c | |
parent | slirp: fork_exec(): Don't close() a negative number in fork_exec() (diff) | |
download | qemu-0b466065eba289c437e3edc2e97144fc5cd6a889.tar.xz qemu-0b466065eba289c437e3edc2e97144fc5cd6a889.zip |
slirp: Handle error returns from slirp_send() in sosendoob()
The code in sosendoob() assumes that slirp_send() always
succeeds, but it might return an OS error code (for instance
if the other end has disconnected). Catch these and return
the caller either -1 on error or the number of urgent bytes
actually written. (None of the callers check this return
value currently, though.)
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'bsd-user/bsdload.c')
0 files changed, 0 insertions, 0 deletions