#include <haproxy/channel-t.h>
#include <haproxy/cli-t.h>
#include <haproxy/global.h>
+#include <haproxy/mworker-t.h>
#include <haproxy/stream-t.h>
#include <haproxy/api-t.h>
#include <haproxy/global-t.h>
-#include <haproxy/mworker-t.h>
extern const char *build_features;
extern struct global global;
extern unsigned int warned; /* bitfield of a few warnings to emit just once */
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 */
extern unsigned int rlim_fd_cur_at_boot;
extern unsigned int rlim_fd_max_at_boot;
#include <haproxy/mworker-t.h>
#include <haproxy/signal-t.h>
+extern struct mworker_proc *proc_self;
+
void mworker_proc_list_to_env();
void mworker_env_to_proc_list();
/* per-boot randomness */
unsigned char boot_seed[20]; /* per-boot random seed (160 bits initially) */
-struct mworker_proc *proc_self = NULL;
-
static void *run_thread_poll_loop(void *data);
/* bitfield of a few warnings to emit just once (WARN_*) */
static int exitcode = -1;
static int max_reloads = -1; /* number max of reloads a worker can have until they are killed */
+struct mworker_proc *proc_self = NULL; /* process structure of current process */
/* ----- children processes handling ----- */