* [Bug 2815] net-snmp before v5.4 has circular library dependencies.
* [Bug 2822] New leap column in sntp broke NTP::Util.pm.
* [Bug 2825] Quiet file installation in html/ .
+* Clean up the RLIMIT_STACK code.
* Improve the ntpq documentation around the controlkey keyid.
* ntpq.c cleanup.
* Windows port build cleanup.
DPRINTF(2, ("ntp_rlimit: STACK: %d %s pages\n",
(int)(rl_value / rl_scale), rl_sstr));
if (-1 == getrlimit(RLIMIT_STACK, &rl)) {
- msyslog(LOG_ERR, "getrlimit() failed: %m");
+ msyslog(LOG_ERR, "getrlimit(RLIMIT_STACK) failed: %m");
} else {
if (rl_value > rl.rlim_max) {
msyslog(LOG_WARNING,
(u_long)rl_value);
rl_value = rl.rlim_max;
}
+ rl.rlim_cur = rl_value;
if (-1 == setrlimit(RLIMIT_STACK, &rl)) {
msyslog(LOG_ERR,
- "ntp_rlimit: Cannot adjust stack limit: %m");
+ "ntp_rlimit: Cannot set RLIMIT_STACK: %m");
}
}
break;