1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

scripts: lvm2-activation-generator: also log possible execv error

This commit is contained in:
Peter Rajnoha 2018-08-30 12:48:50 +02:00
parent 3d5c4847b6
commit 03ed2aae3a

View File

@ -56,7 +56,8 @@ static bool _open_child(struct child_process *child, const char *cmd, const char
close(pipe_fd[1]);
}
execv(cmd, (char *const *) argv);
if (execv(cmd, (char *const *) argv) < 0)
_error("execv failed: %s\n", strerror(errno));
// Shouldn't get here unless exec failed.
exit(1);
} else {