From: Andre Noll Date: Tue, 18 Jan 2011 21:36:32 +0000 (+0100) Subject: gui: Don't exit without shutting down curses on config reload. X-Git-Tag: v0.4.6~39^2~4 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=133240840bd45fbbe4f4be4c52343e0cd32f7e21;hp=6cb4ad9d0b46a6926a3ec68db192a869325d4583;p=paraslash.git 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. --- 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,,$(