This commit is contained in:
Daniel Micay 2012-12-13 09:58:51 -05:00
parent c61a23e4d6
commit aa568da12f
1 changed files with 1 additions and 5 deletions

View File

@ -1149,11 +1149,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info,
static void exit_with_status(VteTerminal *vte) {
int status = vte_terminal_get_child_exit_status(vte);
gtk_main_quit();
if (WIFEXITED(status)) {
exit(WEXITSTATUS(status));
} else {
exit(EXIT_FAILURE); // child did not exit normally
}
exit(WIFEXITED(status) ? WEXITSTATUS(status) : EXIT_FAILURE);
}
int main(int argc, char **argv) {