Double the stack space limit. We are running out with ntp.pool.org.
This commit is contained in:
parent
c37e23a1f9
commit
aba19ee8af
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ntpd.c,v 1.6 2004/06/29 04:16:37 christos Exp $ */
|
||||
/* $NetBSD: ntpd.c,v 1.7 2005/04/05 20:56:58 christos Exp $ */
|
||||
|
||||
/*
|
||||
* ntpd.c - main program for the fixed point NTP daemon
|
||||
|
@ -680,7 +680,7 @@ service_main(
|
|||
struct rlimit rl;
|
||||
|
||||
if (getrlimit(RLIMIT_STACK, &rl) != -1
|
||||
&& (rl.rlim_cur = 5 * 4096 * sizeof(void *)) < rl.rlim_max)
|
||||
&& (rl.rlim_cur = 10 * 4096 * sizeof(void *)) < rl.rlim_max)
|
||||
{
|
||||
if (setrlimit(RLIMIT_STACK, &rl) == -1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue