From 2b2d6ad0541544074fd54c86af6de2e2947e62ce Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 21 Jun 2020 23:42:05 +0200 Subject: Move mcast task to a per-server task to get refcounting right --- main.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 5d99711..1887a5d 100644 --- a/main.c +++ b/main.c @@ -450,10 +450,10 @@ cfg_init(int argc, char **argv) debug_mask = ~0; break; } else if (strcaseeq(optarg, "list")) { - error("Debug categories:"); - error(" * all"); + info("Debug categories:"); + info(" * all"); for (i = 0; debug_category_str[i].name; i++) - error(" * %s", debug_category_str[i].name); + info(" * %s", debug_category_str[i].name); exit(EXIT_FAILURE); } @@ -642,9 +642,16 @@ static void hack_handler(int signum, siginfo_t *info, void *ucontext) { uint64_t val; + static unsigned count = 0; assert_return(signum > 0 && info); + count++; + if (count > 5) { + dump_tree(cfghack); + exit(EXIT_FAILURE); + } + switch (signum) { case SIGUSR1: debug(DBG_SIG, "Got a SIGUSR1"); -- cgit v1.2.3