提交 e301b13d 编写于 作者: J Jes Sorensen 提交者: Blue Swirl

Respect return value from nbd_client()

Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 0a4eb864
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册