This variable is used at several places, better declare it in global.h.
extern volatile unsigned long sleeping_thread_mask;
extern struct list proc_list; /* list of process in mworker mode */
extern struct mworker_proc *proc_self; /* process structure of current process */
+extern int master; /* 1 if in master, 0 otherwise */
/* bit values to go with "warned" above */
#define WARN_BLOCK_DEPRECATED 0x00000001
extern const char *stat_status_codes[];
-extern int master;
-
static struct proxy *mworker_proxy; /* CLI proxy of the master */
static char *cli_gen_usage_msg(struct appctx *appctx)
.list = LIST_HEAD_INIT(bind_keywords.list)
};
-extern int master;
-
struct xfer_sock_list *xfer_sock_list = NULL;
/* This function adds the specified listener's file descriptor to the polling