From 665a6774d47f19353772f3876481d0d37a6beafd Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Wed, 20 Apr 2022 21:07:30 +0200 Subject: [PATCH] mxqd: Rename reaper_process to exec_reaper Rename the function to highlight the fact that it doesn't return in the absence of errors. --- mxqd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mxqd.c b/mxqd.c index 16d3f814..3309f0de 100644 --- a/mxqd.c +++ b/mxqd.c @@ -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; @@ -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);