diff options
author | todd stecher <todd.stecher@gmail.com> | 2009-02-19 09:33:30 -0800 |
---|---|---|
committer | Steven Danneman <steven.danneman@isilon.com> | 2009-02-20 16:35:48 -0800 |
commit | d9a842b26f306a6328e0fb4f226ed8292a8c221a (patch) | |
tree | 38dccdf56470b5ee4e0a97dcf20fc477a522fd4a /source3/configure.in | |
parent | 193be432a224918bf0fbecfb6705146476c15c07 (diff) | |
download | samba-d9a842b26f306a6328e0fb4f226ed8292a8c221a.tar.gz samba-d9a842b26f306a6328e0fb4f226ed8292a8c221a.tar.xz samba-d9a842b26f306a6328e0fb4f226ed8292a8c221a.zip |
S3: Detect max_open_files from system
- Attempt to use syscalls to determine max-open-files value.
- Add in periodic logging when max file limit reached
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index b163a9dbb8d..624862fc899 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -837,6 +837,25 @@ if test x"$samba_cv_msghdr_msg_control" = x"yes"; then fi ############################################# +# check for sysctlbyname +AC_CACHE_CHECK([for sysctlbyname],samba_cv_sysctlbyname, [ + AC_TRY_COMPILE([ +#include <sys/types.h> +#include <sys/sysctl.h> +#include <stdlib.h> +#include <stddef.h>], +[ + int sysctl_max; + size_t size = sizeof(sysctl_max); + sysctlbyname("test", &sysctl_max, &size, NULL, 0); +], + samba_cv_sysctlbyname=yes,samba_cv_sysctlbyname=no)]) +if test x"$samba_cv_msghdr_msg_control" = x"yes"; then + AC_DEFINE(HAVE_SYSCTLBYNAME,1, + [If we support sysctlbyname api]) +fi + +############################################# # check for fd passing struct via msg_acctrights AC_CACHE_CHECK([for fd passing via msg_acctrights], samba_cv_msghdr_msg_acctrights, [ |