CLEANUP: listeners: remove the do_close argument to unbind_listener()
And also remove it from its callers. This subtle distinction was added as
sort of a hack for the seamless reload feature but is not needed anymore
since the do_close turned unused since commit previous commit ("MEDIUM:
listener: let do_unbind_listener() decide whether to close or not").
This also removes the unbind_listener_no_close() function.
diff --git a/src/mworker.c b/src/mworker.c
index 2ef7e7d..f3147a1 100644
--- a/src/mworker.c
+++ b/src/mworker.c
@@ -423,13 +423,7 @@
list_for_each_entry_safe(l, l_next, &curproxy->conf.listeners, by_fe) {
/* remove the listener, but not those we need in the master... */
if (!(l->options & LI_O_MWORKER)) {
- /* unbind the listener but does not close if
- the FD is inherited with fd@ from the parent
- process */
- if (l->rx.flags & RX_F_INHERITED)
- unbind_listener_no_close(l);
- else
- unbind_listener(l);
+ unbind_listener(l);
delete_listener(l);
} else {
listen_in_master = 1;