MINOR: startup: rename on_new_child_failure to mworker_on_new_child_failure

This patch prepares the moving of on_new_child_failure definition into
mworker.c. So, let's rename it accordingly and let's also update its
description.
This commit is contained in:
Valentine Krasnobaeva 2024-11-22 22:41:46 +01:00 committed by William Lallemand
parent 10c14a1ed0
commit 321c021a83
3 changed files with 5 additions and 4 deletions

View File

@ -68,7 +68,7 @@ void display_version();
void mworker_accept_wrapper(int fd);
void mworker_reload(int hardreload);
void on_new_child_failure(void);
void mworker_on_new_child_failure(void);
/* to be used with warned and WARN_* */
static inline int already_warned(unsigned int warning)

View File

@ -915,9 +915,10 @@ static void mworker_loop()
}
/*
* Reexec the process in failure mode, instead of exiting
* Performs some routines for the worker process, which has failed the reload,
* updates the global load_status.
*/
void on_new_child_failure()
void mworker_on_new_child_failure()
{
struct mworker_proc *child;

View File

@ -356,7 +356,7 @@ restart_wait:
/* We didn't find the PID in the list, that shouldn't happen but we can emit a warning */
ha_warning("Process %d exited with code %d (%s)\n", exitpid, status, (status >= 128) ? strsignal(status - 128) : "Exit");
} else if (child->options & PROC_O_INIT) {
on_new_child_failure();
mworker_on_new_child_failure();
/* Detach all listeners */
for (curproxy = proxies_list; curproxy; curproxy = curproxy->next) {