From e301b13d6a7291d43450f4e83435c3a3eeca8629 Mon Sep 17 00:00:00 2001 From: Jes Sorensen Date: Tue, 31 Aug 2010 09:30:34 +0200 Subject: Respect return value from nbd_client() Signed-off-by: Jes Sorensen Signed-off-by: Blue Swirl --- qemu-nbd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qemu-nbd.c') diff --git a/qemu-nbd.c b/qemu-nbd.c index 9cc8f472e6..67ce50b62b 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -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); -- cgit v1.2.3