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:
Jes Sorensen 2010-08-31 09:30:34 +02:00 committed by Blue Swirl
parent 0a4eb864e3
commit e301b13d6a

View File

@ -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);