From 73e699faf130d0fc0f2f076d95db9dbd7f42a8b6 Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Fri, 15 May 2015 10:25:25 +0200 Subject: ripe-atlas-fw: imported version 4660 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- eperd/eooqd.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'eperd/eooqd.c') diff --git a/eperd/eooqd.c b/eperd/eooqd.c index 41efa1b..4f572b7 100644 --- a/eperd/eooqd.c +++ b/eperd/eooqd.c @@ -51,6 +51,7 @@ static struct builtin } builtin_cmds[]= { { "evhttpget", &httpget_ops }, + { "evntp", &ntp_ops }, { "evping", &ping_ops }, { "evtdig", &tdig_ops }, { "evsslgetcert", &sslgetcert_ops }, @@ -84,6 +85,7 @@ int eooqd_main(int argc, char *argv[]) char *pid_file_name; struct event *checkQueueEvent, *rePostEvent; struct timeval tv; + struct rlimit limit; atlas_id= NULL; pid_file_name= NULL; @@ -122,6 +124,12 @@ int eooqd_main(int argc, char *argv[]) sizeof(state->curr_qfile)); strlcat(state->curr_qfile, SUFFIX, sizeof(state->curr_qfile)); + signal(SIGQUIT, SIG_DFL); + chdir("/home/atlas/data"); + limit.rlim_cur= RLIM_INFINITY; + limit.rlim_max= RLIM_INFINITY; + setrlimit(RLIMIT_CORE, &limit); + /* Create libevent event base */ EventBase= event_base_new(); if (!EventBase) -- cgit v1.2.3