From 482f9a9a2fd735c09ad2df1924125797190a3f75 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Fri, 12 Apr 2019 16:15:00 +0200 Subject: [PATCH] MINOR: mworker: export HAPROXY_MWORKER=1 when running in mworker mode Export HAPROXY_MWORKER=1 in an environment variable when running in mworker mode. --- src/haproxy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/haproxy.c b/src/haproxy.c index 935ad3292..1e5e63ea7 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -1594,6 +1594,8 @@ static void init(int argc, char **argv) int proc; struct mworker_proc *tmproc; + setenv("HAPROXY_MWORKER", "1", 1); + if (getenv("HAPROXY_MWORKER_REEXEC") == NULL) { tmproc = calloc(1, sizeof(*tmproc));