From: William Lallemand Date: Fri, 12 Apr 2019 14:15:00 +0000 (+0200) Subject: MINOR: mworker: export HAPROXY_MWORKER=1 when running in mworker mode X-Git-Tag: v2.0-dev3~258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=482f9a9a2fd735c09ad2df1924125797190a3f75;p=thirdparty%2Fhaproxy.git MINOR: mworker: export HAPROXY_MWORKER=1 when running in mworker mode Export HAPROXY_MWORKER=1 in an environment variable when running in mworker mode. --- diff --git a/src/haproxy.c b/src/haproxy.c index 935ad32921..1e5e63ea76 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));