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:
parent
3d5c4847b6
commit
03ed2aae3a
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user