Skip to content

Commit

Permalink
mxqd: Fix exit codes in child process
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jun 16, 2015
1 parent b6ef9fa commit 71fee8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mxqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ unsigned long start_job(struct mxq_group_list *group)

res = init_child_process(group, &mxqjob);
if (!res)
exit(1);
_exit(EX__MAX + 1);

mxq_job_set_tmpfilenames(&group->group, &mxqjob);

Expand Down Expand Up @@ -972,7 +972,7 @@ unsigned long start_job(struct mxq_group_list *group)
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);
_exit(EX__MAX + 1);
}

gettimeofday(&mxqjob.stats_starttime, NULL);
Expand Down

0 comments on commit 71fee8a

Please sign in to comment.