Move the definition of the mworker_proc structure in types/global.h.
char __end[0] __attribute__((aligned(64))); // align size to 64.
};
+/*
+ * Structure used to describe the processes in master worker mode
+ */
+struct mworker_proc {
+ int pid;
+ int ipc_fd[2]; /* 0 is master side, 1 is worker side */
+ int relative_pid;
+ int reloads;
+ struct list list;
+};
+
extern struct global global;
extern struct activity activity[MAX_THREADS];
extern int pid; /* current process id */
int master = 0; /* 1 if in master, 0 if in child */
-struct mworker_proc {
- int pid;
- int ipc_fd[2]; /* 0 is master side, 1 is worker side */
- int relative_pid;
- int reloads;
- struct list list;
-};
-
struct mworker_proc *proc_self;
-
-
/* list of the temporarily limited listeners because of lack of resource */
struct list global_listener_queue = LIST_HEAD_INIT(global_listener_queue);
struct task *global_listener_queue_task;