]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup:
authorAndreas Gustafsson <source@isc.org>
Sat, 9 Jun 2001 00:58:11 +0000 (00:58 +0000)
committerAndreas Gustafsson <source@isc.org>
Sat, 9 Jun 2001 00:58:11 +0000 (00:58 +0000)
 704.   [port]          RLIMIT_NOFILE in to available on all platforms.
                        [RT #695]

CHANGES
lib/isc/unix/resource.c

diff --git a/CHANGES b/CHANGES
index 81ec968382fdd995edb3e5c7179349a21d909ae4..cf76b132645dde75cc04d1d19b8919a1a61e4733 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -27,6 +27,8 @@
  705.  [port]          Work out resource limit type for use where rlim_t is
                        not available. [RT #695]
 
+ 704.  [port]          RLIMIT_NOFILE is not available on all platforms.
+
        --- 9.1.3rc1 released ---
 
  831.  [bug]           The configure script tried to determine
index fce33529b9a42d38ace6cab0b9e2c92131daf75b..0e1e4eca40dee425b1e230df0be65d17b497ad79 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: resource.c,v 1.6.2.2 2001/06/09 00:53:21 gson Exp $ */
+/* $Id: resource.c,v 1.6.2.3 2001/06/09 00:58:11 gson Exp $ */
 
 #include <config.h>
 
@@ -59,7 +59,11 @@ resource2rlim(isc_resource_t resource, int *rlim_resource) {
 #endif
                break;
        case isc_resource_openfiles:
+#ifdef RLIMIT_NOFILE
                *rlim_resource = RLIMIT_NOFILE;
+#else
+               result = ISC_R_NOTIMPLEMENTED;
+#endif
                break;
        case isc_resource_processes:
 #ifdef RLIMIT_NPROC