if (inst->back->exitcode(inst->backhandle) >= 0) {  done_with_pty(inst);
if ((exitcode = inst->back->exitcode(inst->backhandle)) >= 0) { inst->exited = TRUE; if (inst->cfg.close_on_exit == FORCE_ON || (inst->cfg.close_on_exit == AUTO && exitcode == 0)) exit(0);
gint timer_func(gpointer data){    struct gui_data *inst = (struct gui_data *)data;    if (inst->back->exitcode(inst->backhandle) >= 0) {	/*	 * The primary child process died. We could keep the	 * terminal open for remaining subprocesses to output to,	 * but conventional wisdom seems to feel that that's the	 * Wrong Thing for an xterm-alike, so we bail out now	 * (though we don't necessarily _close_ the window,	 * depending on the state of Close On Exit). This would be	 * easy enough to change or make configurable if necessary.	 */	done_with_pty(inst);    }    term_update(inst->term);    term_blink(inst->term, 0);    return TRUE;}