Skip to content

Commit

Permalink
mxqd: Add more information to execvp() error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jun 15, 2015
1 parent 853a7c3 commit cb9d26e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,9 @@ unsigned long start_job(struct mxq_group_list *group)

char **argv = str_to_strvec(mxqjob.job_argv_str);
execvp(argv[0], argv);
mx_log_err("execvp: %m");
mx_log_err("job=%s(%d):%lu:%lu execvp(\"%s\", ...): %m",
group->group.user_name, group->group.user_uid, group->group.group_id, mxqjob.job_id,
argv[0]);
exit(1);
}

Expand Down

0 comments on commit cb9d26e

Please sign in to comment.