mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
MINOR: mworker: mworker_cleanlisteners() delete the listeners
The mworker_cleanlisteners() function now remove the listeners, we don't need them in the master for now.
This commit is contained in:
parent
3da9769ee4
commit
91c13b696a
@ -550,17 +550,15 @@ static void mworker_cleanlisteners()
|
|||||||
curpeers->peers_fe = NULL;
|
curpeers->peers_fe = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (curproxy = proxies_list; curproxy; curproxy = curproxy->next) {
|
||||||
list_for_each_entry_safe(l, l_next, &curproxy->conf.listeners, by_fe) {
|
list_for_each_entry_safe(l, l_next, &curproxy->conf.listeners, by_fe) {
|
||||||
/* does not close if the FD is inherited with fd@
|
/* does not close if the FD is inherited with fd@
|
||||||
* from the parent process */
|
* from the parent process */
|
||||||
if (!(l->options & LI_O_INHERITED)) {
|
if (!(l->options & LI_O_INHERITED))
|
||||||
close(l->fd);
|
unbind_listener(l);
|
||||||
LIST_DEL(&l->by_fe);
|
/* remove the listener, but we might want to keep some
|
||||||
LIST_DEL(&l->by_bind);
|
* for the master in the future... */
|
||||||
free(l->name);
|
delete_listener(l);
|
||||||
free(l->counters);
|
|
||||||
free(l);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user