cleanup
This commit is contained in:
parent
c61a23e4d6
commit
aa568da12f
|
@ -1149,11 +1149,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info,
|
||||||
static void exit_with_status(VteTerminal *vte) {
|
static void exit_with_status(VteTerminal *vte) {
|
||||||
int status = vte_terminal_get_child_exit_status(vte);
|
int status = vte_terminal_get_child_exit_status(vte);
|
||||||
gtk_main_quit();
|
gtk_main_quit();
|
||||||
if (WIFEXITED(status)) {
|
exit(WIFEXITED(status) ? WEXITSTATUS(status) : EXIT_FAILURE);
|
||||||
exit(WEXITSTATUS(status));
|
|
||||||
} else {
|
|
||||||
exit(EXIT_FAILURE); // child did not exit normally
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
|
Loading…
Reference in New Issue