MINOR: mworker: export HAPROXY_MWORKER=1 when running in mworker mode

Export HAPROXY_MWORKER=1 in an environment variable when running in
mworker mode.
This commit is contained in:
William Lallemand 2019-04-12 16:15:00 +02:00 committed by Willy Tarreau
parent 620072bc0d
commit 482f9a9a2f

View File

@ -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));