diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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"); |