Displaying 1 result from an estimated 1 matches for "max_client_limit_source".
2015 Jan 22
2
[PATCH] increase fd_limit to max_client_limit automatically
...sys/wait.h>
+#include <sys/resource.h>
static bool master_settings_verify(void *_set, pool_t pool,
const char **error_r);
@@ -418,7 +419,7 @@
#ifdef CONFIG_BINARY
const struct service_settings *default_service;
#else
- rlim_t fd_limit;
+ struct rlimit fd_limit;
const char *max_client_limit_source = "default_client_limit";
unsigned int max_client_limit = set->default_client_limit;
#endif
@@ -591,12 +592,18 @@
client_limit, max_anvil_client_processes);
}
#ifndef CONFIG_BINARY
- if (restrict_get_fd_limit(&fd_limit) == 0 &&
- fd_limit < (rlim_t)max_cl...