lib/exec_shell: (and pager) use errexec()
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
3c29b695dd
commit
0f6adf8673
|
@ -46,5 +46,5 @@ void __attribute__((__noreturn__)) exec_shell(void)
|
|||
strcpy(arg0 + 1, shell_basename);
|
||||
|
||||
execl(shell, arg0, NULL);
|
||||
err(EXIT_FAILURE, _("failed to execute %s"), shell);
|
||||
errexec(shell);
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ static int start_command(struct child_process *cmd)
|
|||
|
||||
cmd->preexec_cb();
|
||||
execvp(cmd->argv[0], (char *const*) cmd->argv);
|
||||
exit(127); /* cmd not found */
|
||||
errexec(cmd->argv[0]);
|
||||
}
|
||||
|
||||
if (cmd->pid < 0) {
|
||||
|
|
Loading…
Reference in New Issue