mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-03 08:22:00 +03:00
scripts: lvm2-activation-generator: also log possible execv error
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user