commit | e301b13d6a7291d43450f4e83435c3a3eeca8629 | [log] [tgz] |
---|---|---|
author | Jes Sorensen <[email protected]> | Tue Aug 31 09:30:34 2010 +0200 |
committer | Blue Swirl <[email protected]> | Sat Sep 04 09:45:51 2010 +0000 |
tree | c6bc68585bd3ceb39186e8e0847ae2bb32f82845 | |
parent | 0a4eb864e354d650ac9ff6aea62873a6cd07e9ca [diff] [blame] |
Respect return value from nbd_client() Signed-off-by: Jes Sorensen <[email protected]> Signed-off-by: Blue Swirl <[email protected]>
diff --git a/qemu-nbd.c b/qemu-nbd.c index 9cc8f47..67ce50b 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c
@@ -417,7 +417,10 @@ show_parts(device); - nbd_client(fd); + ret = nbd_client(fd); + if (ret) { + ret = 1; + } close(fd); out: kill(pid, SIGTERM);