]> git.decadent.org.uk Git - nfs-utils.git/commit
gssd: base the size of the fd array on the RLIMIT_NOFILE limit.
authorNeilBrown <neilb@suse.de>
Wed, 28 Nov 2012 19:35:25 +0000 (14:35 -0500)
committerSteve Dickson <steved@redhat.com>
Wed, 28 Nov 2012 19:48:02 +0000 (14:48 -0500)
commit7c5cb5e732a4b8704f8c79ec819c5d271e040339
tree19159a7318eae6f510d92b2cdf090a8f7ec8e071
parent19024076a7497a2423ff06d36496385f27395332
gssd: base the size of the fd array on the RLIMIT_NOFILE limit.

We have previously raised the size of the 'pollarray' once (32 -> 256)
and I have had another request to make it bigger.
Rather than changing the hard-coded value, make it depend on
RLIMIT_NOFILE.  This is an upper limit on the size of the array
that can be passed to poll() anyway.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/gssd/gssd_proc.c