From: NeilBrown Date: Wed, 28 Nov 2012 19:35:25 +0000 (-0500) Subject: gssd: base the size of the fd array on the RLIMIT_NOFILE limit. X-Git-Tag: debian/1%1.2.8-1~11^2^2~46 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=7c5cb5e732a4b8704f8c79ec819c5d271e040339;hp=7c5cb5e732a4b8704f8c79ec819c5d271e040339 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 Signed-off-by: Steve Dickson ---