This is in preparation for adding Master/Worker mode --- src/haproxy.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/haproxy.c b/src/haproxy.c index 99d8c0d..1f02902 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -136,6 +136,9 @@ struct global global = { /*********************************************************************/ int stopping; /* non zero means stopping in progress */ +int is_master = 0; /* non zero means that master/worker mode + * has been activated and the current process + * is the master */ int jobs = 0; /* number of active jobs (conns, listeners, active tasks, ...) */ /* Here we store informations about the pids of the processes we may pause -- 1.7.2.3