aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terminal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index ecb4e6cc..5b1d6190 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1305,6 +1305,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