gtk_input_remove(inst->master_func_id);
}
- if (!inst->exited && back->exitcode() >= 0) {
- int exitcode = back->exitcode();
+ if (!inst->exited && back->exitcode(backhandle) >= 0) {
+ int exitcode = back->exitcode(backhandle);
int clean;
clean = WIFEXITED(exitcode) && (WEXITSTATUS(exitcode) == 0);
{
struct gui_data *inst = (struct gui_data *)data;
- if (back->exitcode() >= 0) {
+ if (back->exitcode(backhandle) >= 0) {
/*
* The primary child process died. We could keep the
* terminal open for remaining subprocesses to output to,
term = term_init();
back = &pty_backend;
- back->init((void *)term, NULL, 0, NULL, 0);
+ back->init((void *)term, &backhandle, NULL, 0, NULL, 0);
term_size(term, cfg.height, cfg.width, cfg.savelines);
ldisc_send(NULL, 0, 0); /* cause ldisc to notice changes */