]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: mworker: move struct mworker_proc to global.h
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 26 Oct 2018 12:47:31 +0000 (14:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:51:38 +0000 (13:51 +0100)
Move the definition of the mworker_proc structure in types/global.h.

include/types/global.h
src/haproxy.c

index 5262867df0ccc5bcec1fa4dee51b6f58145faf5b..201a18a1527e64ef596b5b7a8a67f6abcc9f6c4d 100644 (file)
@@ -202,6 +202,17 @@ struct activity {
        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 */
index 5cce573433f14f83bf9bad3529d42307111a79ce..d5c55e17238239f658134fc04ec1292aecb13e55 100644 (file)
@@ -212,18 +212,8 @@ struct list proc_list = LIST_HEAD_INIT(proc_list);
 
 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;