diff --git a/src/haproxy.c b/src/haproxy.c index fd5ef3061..5d3d92869 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -3183,6 +3183,8 @@ int main(int argc, char **argv) exit(1); /* there has been an error */ } else if (ret == 0) { /* child breaks here */ + /* This one must not be exported, it's internal! */ + unsetenv("HAPROXY_MWORKER_REEXEC"); ha_random_jump96(1); } else { /* parent here */ diff --git a/src/mworker-prog.c b/src/mworker-prog.c index 4a6466213..9de94a289 100644 --- a/src/mworker-prog.c +++ b/src/mworker-prog.c @@ -110,6 +110,8 @@ int mworker_ext_launch_all() exit(1); } + /* This one must not be exported, it's internal! */ + unsetenv("HAPROXY_MWORKER_REEXEC"); execvp(child->command[0], child->command); ha_alert("Cannot execute %s: %s\n", child->command[0], strerror(errno));