Subject: Allow gssd to handle more file descriptors. References: bnc#787272 gssd is currently limited to 256 file descriptors. Sometimes it is useful to allow more. As 'poll' will only allow up to RLIMIT_NOFILE which defaults to 1024, change gssd to allocate space for RLIMIT_NOFILE file descriptors. Then if more are needed, "ulimit -n XX" can achieve it, and would be needed anyway. Not that krb5 has a limit on 1024 which this patch cannot help. Signed-off-by: NeilBrown --- utils/gssd/gssd_proc.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) --- nfs-utils-1.2.3.orig/utils/gssd/gssd_proc.c +++ nfs-utils-1.2.3/utils/gssd/gssd_proc.c @@ -52,6 +52,7 @@ #include #include #include +#include #include #include @@ -396,7 +397,7 @@ get_poll_index(int *ind) int i; *ind = -1; - for (i=0; id_name, "clnt", 4) + if (!strncmp(namelist[i]->d_name, "clnt", 4) && !find_client(namelist[i]->d_name, pipe_name)) process_clnt_dir(namelist[i]->d_name, pipe_name); free(namelist[i]);