diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-12 08:21:01 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-12 08:21:01 +0000 |
| commit | 6b539ba37305141e2139a13494e26652a69e3b60 (patch) | |
| tree | bfdbdeba10b87874f52819829fa8f1660a129489 | |
| parent | pgo: stub implementation of reaper_del() (diff) | |
term: remove client application’s pid from reaper when shutting down
When we are shutting down the terminal, we explicitly wait for the
child application to terminate (with a timeout, after which the child
process is killed).
I.e. there’s no need to let the reaper handle it. In fact, doing so
leads to a crash since we will have destroyed (and thus free:d) the
terminal instance when the reaper callback is called.
| -rw-r--r-- | terminal.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1334,6 +1334,9 @@ term_shutdown(struct terminal *term) fdm_del(term->fdm, term->blink.fd); fdm_del(term->fdm, term->flash.fd); + /* We’ll deal with this explicitly */ + reaper_del(term->reaper, term->slave); + if (term->window != NULL && term->window->is_configured) fdm_del(term->fdm, term->ptmx); else |
