diff --git a/src/haproxy.c b/src/haproxy.c index cdb6066b5..a42574433 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -2444,6 +2444,13 @@ int main(int argc, char **argv) if (nb_oldpids) nb_oldpids = tell_old_pids(oldpids_sig); + if ((getenv("HAPROXY_MWORKER_REEXEC") == NULL)) { + nb_oldpids = 0; + free(oldpids); + oldpids = NULL; + } + + /* Note that any error at this stage will be fatal because we will not * be able to restart the old pids. */