isc_resource_getlimit under windows only supports isc_resource_openfiles

This commit is contained in:
Mark Andrews
2018-11-09 12:29:36 +11:00
parent 02be459f37
commit 896fb585b3

View File

@@ -1068,6 +1068,7 @@ setup(void) {
/*
* Get the initial resource limits.
*/
#ifndef WIN32
RUNTIME_CHECK(isc_resource_getlimit(isc_resource_stacksize,
&named_g_initstacksize)
== ISC_R_SUCCESS);
@@ -1077,6 +1078,7 @@ setup(void) {
RUNTIME_CHECK(isc_resource_getlimit(isc_resource_coresize,
&named_g_initcoresize)
== ISC_R_SUCCESS);
#endif
RUNTIME_CHECK(isc_resource_getlimit(isc_resource_openfiles,
&named_g_initopenfiles)
== ISC_R_SUCCESS);