+4083. [cleanup] Print of the number of CPUs and UDP listeners
+ in the log and in "rndc status" output; indicate
+ whether threads are supported in "named -V" output.
+ [RT #38811]
+
4082. [bug] Incrementally sign large inline zone deltas.
[RT #37927]
JSON_C_VERSION);
printf("linked to libjson-c version: %s\n",
json_c_version());
+#endif
+#ifdef ISC_PLATFORM_USETHREADS
+ printf("threads support is enabled\n");
+#else
+ printf("threads support is disabled\n");
#endif
exit(0);
case 'x':
if (ns_g_udpdisp > ns_g_cpus)
ns_g_udpdisp = ns_g_cpus;
#endif
+#ifdef ISC_PLATFORM_USETHREADS
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_SERVER,
ISC_LOG_INFO, "using %u UDP listener%s per interface",
ns_g_udpdisp, ns_g_udpdisp == 1 ? "" : "s");
+#endif
result = isc_taskmgr_create(ns_g_mctx, ns_g_cpus, 0, &ns_g_taskmgr);
if (result != ISC_R_SUCCESS) {
snprintf(line, sizeof(line), "UDP listeners per interface: %u\n",
ns_g_udpdisp);
CHECK(putstr(text, line));
-
+#else
+ snprintf(line, sizeof(line), "CPUs found: N/A (threads disabled)\n");
+ CHECK(putstr(text, line));
#endif
+
snprintf(line, sizeof(line), "number of zones: %u (%u automatic)\n",
zonecount, automatic);
CHECK(putstr(text, line));
return (result);
}
#else
-geoip_state_t prev_state;
+static geoip_state_t saved_state;
#endif
static void
} else
clean_state(state);
#else
- state = &prev_state;
+ state = &saved_state;
clean_state(state);
#endif
if (state == NULL)
return (NULL);
#else
- state = &prev_state;
+ state = &saved_state;
#endif
if (state->family == family &&