From: Willy Tarreau Date: Wed, 7 Sep 2011 12:26:33 +0000 (+0200) Subject: [CLEANUP] remove a useless test in manage_global_listener_queue() X-Git-Tag: v1.5-dev8~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abacc2cfd11b40e62524501a40873a58ee1d3d67;p=thirdparty%2Fhaproxy.git [CLEANUP] remove a useless test in manage_global_listener_queue() The test for the empty list was done twice. --- diff --git a/src/haproxy.c b/src/haproxy.c index d72a2f1191..7aa9fd451d 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -599,6 +599,7 @@ void init(int argc, char **argv) } + global.hardmaxconn = global.maxconn; /* keep this max value */ global.maxsock += global.maxconn * 2; /* each connection needs two sockets */ global.maxsock += global.maxpipes * 2; /* each pipe needs two FDs */ @@ -1054,8 +1055,7 @@ static struct task *manage_global_listener_queue(struct task *t) * as a file descriptor or memory and that the temporary condition has * disappeared. */ - if (!LIST_ISEMPTY(&global_listener_queue)) - dequeue_all_listeners(&global_listener_queue); + dequeue_all_listeners(&global_listener_queue); out: t->expire = next;