mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-05 02:49:01 +00:00
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:
parent
620072bc0d
commit
482f9a9a2f
@ -1594,6 +1594,8 @@ static void init(int argc, char **argv)
|
|||||||
int proc;
|
int proc;
|
||||||
struct mworker_proc *tmproc;
|
struct mworker_proc *tmproc;
|
||||||
|
|
||||||
|
setenv("HAPROXY_MWORKER", "1", 1);
|
||||||
|
|
||||||
if (getenv("HAPROXY_MWORKER_REEXEC") == NULL) {
|
if (getenv("HAPROXY_MWORKER_REEXEC") == NULL) {
|
||||||
|
|
||||||
tmproc = calloc(1, sizeof(*tmproc));
|
tmproc = calloc(1, sizeof(*tmproc));
|
||||||
|
Loading…
Reference in New Issue
Block a user