commit | 482f9a9a2fd735c09ad2df1924125797190a3f75 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.com> | Fri Apr 12 16:15:00 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Apr 16 13:26:43 2019 +0200 |
tree | d3deecaa46587010a6804f2309bf60472921b872 | |
parent | 620072bc0d28d4bf88968295ffe7152838aab038 [diff] |
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 935ad32..1e5e63e 100644 --- a/src/haproxy.c +++ b/src/haproxy.c
@@ -1594,6 +1594,8 @@ int proc; struct mworker_proc *tmproc; + setenv("HAPROXY_MWORKER", "1", 1); + if (getenv("HAPROXY_MWORKER_REEXEC") == NULL) { tmproc = calloc(1, sizeof(*tmproc));