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.
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)
}
/*
- * 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;
/* 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) {