mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-06 03:18:43 +00:00
MINOR: mworker: don't deinit the poller fd when in wait mode
If haproxy failed to load its configuration, the process is reexecuted and it did not init the poller. So we must not try to deinit the poller before the exec().
This commit is contained in:
parent
d3801c1c21
commit
de0ff5ab20
@ -666,7 +666,8 @@ static void mworker_reload()
|
||||
next_argv[next_argc++] = NULL;
|
||||
}
|
||||
|
||||
deinit_pollers(); /* we don't want to leak the poller fd */
|
||||
if (getenv("HAPROXY_MWORKER_WAIT_ONLY") == NULL)
|
||||
deinit_pollers(); /* we don't want to leak the poller fd */
|
||||
|
||||
ha_warning("Reexecuting Master process\n");
|
||||
execvp(next_argv[0], next_argv);
|
||||
|
Loading…
Reference in New Issue
Block a user