From 2372b0fdc67f17336e39d8eb86019103aad6bb4e Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 18 Jun 2020 08:34:22 +0000 Subject: Add a flag to make a client wait for an empty line before exiting in control mode to avoid stray commands ending up in the shell. --- control.c | 1 + 1 file changed, 1 insertion(+) (limited to 'control.c') diff --git a/control.c b/control.c index 05093d94..5681d2dc 100644 --- a/control.c +++ b/control.c @@ -695,6 +695,7 @@ control_discard(struct client *c) RB_FOREACH(cp, control_panes, &cs->panes) control_discard_pane(c, cp); + bufferevent_disable(cs->read_event, EV_READ); } /* Stop control mode. */ -- cgit