From: Ondřej Kuzník Date: Wed, 18 Jan 2023 12:57:02 +0000 (+0000) Subject: ITS#9984 Keep listener base around even if not active X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd3b6b679fb9844adca90130922227843807b011;p=thirdparty%2Fopenldap.git ITS#9984 Keep listener base around even if not active --- diff --git a/servers/lloadd/daemon.c b/servers/lloadd/daemon.c index 1610dbef32..c990b6eb15 100644 --- a/servers/lloadd/daemon.c +++ b/servers/lloadd/daemon.c @@ -949,7 +949,8 @@ lload_listener( static void * lload_listener_thread( void *ctx ) { - int rc = event_base_dispatch( listener_base ); + /* ITS#9984 Survive the listeners being paused if we run out of fds */ + int rc = event_base_loop( listener_base, EVLOOP_NO_EXIT_ON_EMPTY ); Debug( LDAP_DEBUG_ANY, "lload_listener_thread: " "event loop finished: rc=%d\n", rc );