diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2010-08-31 09:30:34 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-09-04 09:45:51 +0000 |
commit | e301b13d6a7291d43450f4e83435c3a3eeca8629 (patch) | |
tree | c6bc68585bd3ceb39186e8e0847ae2bb32f82845 | |
parent | 0a4eb864e354d650ac9ff6aea62873a6cd07e9ca (diff) | |
download | qemu-e301b13d6a7291d43450f4e83435c3a3eeca8629.zip qemu-e301b13d6a7291d43450f4e83435c3a3eeca8629.tar.gz qemu-e301b13d6a7291d43450f4e83435c3a3eeca8629.tar.bz2 |
Respect return value from nbd_client()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | qemu-nbd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -417,7 +417,10 @@ int main(int argc, char **argv) show_parts(device); - nbd_client(fd); + ret = nbd_client(fd); + if (ret) { + ret = 1; + } close(fd); out: kill(pid, SIGTERM); |