* CLI at worker side (worker can send its status to master).It only returns if
* everything is OK. If something fails, it exits.
*/
-static void prepare_master()
+static void mworker_prepare_master()
{
struct mworker_proc *tmproc;
LIST_APPEND(&proc_list, &tmproc->list);
}
-static void run_master()
+static void mworker_run_master()
{
struct mworker_proc *child, *it;
step_init_4();
/* enter in master polling loop */
- run_master();
+ mworker_run_master();
}
/* parse conf in disovery mode and set modes from config */
* setenv("HAPROXY_MWORKER", "1", 1).
*/
if (global.mode & MODE_MWORKER)
- prepare_master();
+ mworker_prepare_master();
/* If we are in a daemon mode and we might be also in master-worker mode:
* we should do daemonization fork here to put the main process (which
/* Master enters in its polling loop */
if (master) {
- run_master();
+ mworker_run_master();
/* never get there in master context */
}