summaryrefslogtreecommitdiffstats
path: root/control.c
diff options
context:
space:
mode:
authornicm <nicm>2020-06-18 08:34:22 +0000
committernicm <nicm>2020-06-18 08:34:22 +0000
commit2372b0fdc67f17336e39d8eb86019103aad6bb4e (patch)
tree593dc9a961f5695e4a3986a8a82cc185d6613d38 /control.c
parent1bf9555e4f1ad19e1e6f97ede6fb19808ff1c267 (diff)
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.
Diffstat (limited to 'control.c')
-rw-r--r--control.c1
1 files changed, 1 insertions, 0 deletions
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. */