Skip to content

Commit

Permalink
mxqd: Rename reaper_process to exec_reaper
Browse files Browse the repository at this point in the history
Rename the function to highlight the fact that it doesn't return in the
absence of errors.
  • Loading branch information
donald committed Apr 20, 2022
1 parent d2d095a commit 665a677
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 @@ -1191,7 +1191,7 @@ static int is_reaper(pid_t pid) {
return 0;
}

static int reaper_process(struct mxq_server *server,struct mxq_group_list *glist, struct mxq_job *job) {
static int exec_reaper(struct mxq_server *server,struct mxq_group_list *glist, struct mxq_job *job) {
int res;

struct mxq_group *group;
Expand Down Expand Up @@ -1293,7 +1293,7 @@ static unsigned long start_job(struct mxq_group_list *glist)
server->flock = NULL;
mx_mysql_finish(&server->mysql);

res = reaper_process(server, glist, job);
res = exec_reaper(server, glist, job);

mxq_job_free_content(job);

Expand Down

0 comments on commit 665a677

Please sign in to comment.