- if (gui_cmdline_parser_config_file(cf, &conf, ¶ms) != 0) {
- PARA_EMERG_LOG("errors in config file");
- finish(EXIT_FAILURE);
- }
- PARA_NOTICE_LOG("config file reloaded");
+ /*
+ * Despite .print_errors is set to 0, gengetopt will print to stderr
+ * anyway, and exit on errors. So we have to shutdown curses first.
+ */
+ shutdown_curses();
+ gui_cmdline_parser_config_file(cf, &conf, ¶ms);
+ init_curses();
+ PARA_NOTICE_LOG("config file reloaded\n");