]> git.tue.mpg.de Git - paraslash.git/commit
gui: Don't exit without shutting down curses on config reload.
authorAndre Noll <maan@systemlinux.org>
Tue, 18 Jan 2011 21:36:32 +0000 (22:36 +0100)
committerAndre Noll <maan@systemlinux.org>
Fri, 11 Feb 2011 10:25:07 +0000 (11:25 +0100)
commit133240840bd45fbbe4f4be4c52343e0cd32f7e21
tree5415960adfbdea214cbf6e2cd2a39943f3eb77d8
parent6cb4ad9d0b46a6926a3ec68db192a869325d4583
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
gui.c