Only warn about being unable to make a smaller stack if asking for debug
messages. Between ASLR and stack clash random-sized padding, we can't make small stacks reliably. Not doing so isn't a problem, so don't warn users about it on every boot. PR bin/51118
This commit is contained in:
parent
a9ca1710c0
commit
02110410c6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ntp_config.c,v 1.20 2018/12/24 02:58:39 christos Exp $ */
|
||||
/* $NetBSD: ntp_config.c,v 1.21 2019/04/24 11:55:05 maya Exp $ */
|
||||
|
||||
/* ntp_config.c
|
||||
*
|
||||
|
@ -5252,7 +5252,7 @@ ntp_rlimit(
|
|||
}
|
||||
rl.rlim_cur = rl_value;
|
||||
if (-1 == setrlimit(RLIMIT_STACK, &rl)) {
|
||||
msyslog(LOG_ERR,
|
||||
msyslog(LOG_DEBUG,
|
||||
"ntp_rlimit: Cannot set RLIMIT_STACK: %m");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue