Respect return value from nbd_client()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
0a4eb864e3
commit
e301b13d6a
@ -417,7 +417,10 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
show_parts(device);
|
show_parts(device);
|
||||||
|
|
||||||
nbd_client(fd);
|
ret = nbd_client(fd);
|
||||||
|
if (ret) {
|
||||||
|
ret = 1;
|
||||||
|
}
|
||||||
close(fd);
|
close(fd);
|
||||||
out:
|
out:
|
||||||
kill(pid, SIGTERM);
|
kill(pid, SIGTERM);
|
||||||
|
Loading…
Reference in New Issue
Block a user