From 133240840bd45fbbe4f4be4c52343e0cd32f7e21 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 18 Jan 2011 22:36:32 +0100 Subject: [PATCH] gui: Don't exit without shutting down curses on config reload. Currently, if a config file containing errors is being reloaded, gui_cmdline_parser_ext() calls exit() which leaves the terminal in an unusable state because para_gui had no chance to call endwin() in order to reset the terminal. Fix this flaw by instructing gengetopt to generate code that does not exit on errors. We can still tell that the command line or the config file contained errors by looking at the return value of the various parsers. --- ggo/makefile | 1 + gui.c | 16 +++++++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ggo/makefile b/ggo/makefile index d4f3a8cd..d5a1d645 100644 --- a/ggo/makefile +++ b/ggo/makefile @@ -29,6 +29,7 @@ $(cmdline_dir)/%_write.cmdline.h $(cmdline_dir)/%_write.cmdline.c: $(ggo_dir)/%_ --func-name $(subst _write.ggo,,$(