]> 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:46:43 +0000 (17:46 +0000)
servers/lloadd/daemon.c

index 53b1810db56209d3addde4f89014cdd9bf89c6a7..86134aeae2cea0a8a34171f90795770d9212a6b8 100644 (file)
@@ -950,7 +950,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 );