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.
This commit is contained in:
nicm
2020-06-18 08:34:22 +00:00
parent 1bf9555e4f
commit 2372b0fdc6
6 changed files with 44 additions and 6 deletions

View File

@ -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. */