exit(EXIT_FAILURE);
}
+/* reread configuration, terminate on errors */
+static void reread_conf(void)
+{
+ /*
+ * gengetopt might print to stderr and exit on errors. So we have to
+ * shutdown curses first.
+ */
+ shutdown_curses();
+ parse_config_file_or_die(true /* override */);
+ init_curses();
+ print_in_bar(COLOR_MSG, "config file reloaded\n");
+}
+
/*
* React to various signal-related events
*/
return;
case SIGUSR1:
PARA_NOTICE_LOG("got SIGUSR1, rereading configuration\n");
- com_reread_conf();
+ reread_conf();
return;
case SIGCHLD:
check_sigchld();
print_in_bar(COLOR_MSG, "loglevel set to %d\n", loglevel);
}
-/*
- * reread configuration, terminate on errors
- */
static void com_reread_conf(void)
{
- /*
- * gengetopt might print to stderr and exit on errors. So we have to
- * shutdown curses first.
- */
- shutdown_curses();
- parse_config_file_or_die(true /* override */);
- init_curses();
- print_in_bar(COLOR_MSG, "config file reloaded\n");
+ reread_conf();
}
static void com_help(void)