mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02:00
MINOR: mworker: stores the mcli_reload bind_conf
Stores the mcli_reload bind_conf in order to identify it later.
This commit is contained in:
parent
21623b5949
commit
56f73b21a5
@ -46,6 +46,8 @@ struct bind_conf *mworker_cli_proxy_new_listener(char *line);
|
|||||||
int mworker_cli_sockpair_new(struct mworker_proc *mworker_proc, int proc);
|
int mworker_cli_sockpair_new(struct mworker_proc *mworker_proc, int proc);
|
||||||
void mworker_cli_proxy_stop(void);
|
void mworker_cli_proxy_stop(void);
|
||||||
|
|
||||||
|
extern struct bind_conf *mcli_reload_bind_conf;
|
||||||
|
|
||||||
/* proxy mode cli functions */
|
/* proxy mode cli functions */
|
||||||
|
|
||||||
/* analyzers */
|
/* analyzers */
|
||||||
|
@ -85,6 +85,7 @@ static struct cli_kw_list cli_keywords = {
|
|||||||
extern const char *stat_status_codes[];
|
extern const char *stat_status_codes[];
|
||||||
|
|
||||||
struct proxy *mworker_proxy; /* CLI proxy of the master */
|
struct proxy *mworker_proxy; /* CLI proxy of the master */
|
||||||
|
struct bind_conf *mcli_reload_bind_conf;
|
||||||
|
|
||||||
/* CLI context for the "show activity" command */
|
/* CLI context for the "show activity" command */
|
||||||
struct show_activity_ctx {
|
struct show_activity_ctx {
|
||||||
|
@ -2131,7 +2131,8 @@ static void init(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
/* Create the mcli_reload listener from the proc_self struct */
|
/* Create the mcli_reload listener from the proc_self struct */
|
||||||
memprintf(&path, "sockpair@%d", proc_self->ipc_fd[1]);
|
memprintf(&path, "sockpair@%d", proc_self->ipc_fd[1]);
|
||||||
if (mworker_cli_proxy_new_listener(path) == NULL) {
|
mcli_reload_bind_conf = mworker_cli_proxy_new_listener(path);
|
||||||
|
if (mcli_reload_bind_conf == NULL) {
|
||||||
ha_alert("Cannot create the mcli_reload listener.\n");
|
ha_alert("Cannot create the mcli_reload listener.\n");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user