]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9984 Keep listener base around even if not active
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 18 Jan 2023 12:57:02 +0000 (12:57 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 19 Jan 2023 17:47:16 +0000 (17:47 +0000)
servers/lloadd/daemon.c

index 48bcf6a59a9b22da3f3320d7ed37959c70cd6d97..b88fd687de8fe1ccd13f714de8f3a1593f56bb29 100644 (file)
@@ -946,7 +946,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 );