summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authornicm <nicm>2020-06-01 09:43:00 +0000
committernicm <nicm>2020-06-01 09:43:00 +0000
commita54a88edd6fd893d4370feb9f9136e13096b891c (patch)
tree1e42bf42d42c31e1ef3c059aaf1ae25ae6ef3bd5 /server.c
parent175e45005f4572b19a4aa34094f9a8c69ced5475 (diff)
Instead of sending all data to control mode clients as fast as possible,
add a limit of how much data will be sent to the client and try to use it for panes with some degree of fairness. GitHub issue 2217, with George Nachman.
Diffstat (limited to 'server.c')
-rw-r--r--server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.c b/server.c
index f07479ae..67d47f23 100644
--- a/server.c
+++ b/server.c
@@ -199,6 +199,7 @@ server_start(struct tmuxproc *client, int flags, struct event_base *base,
"tty ps", NULL) != 0)
fatal("pledge failed");
+ input_key_build();
RB_INIT(&windows);
RB_INIT(&all_window_panes);
TAILQ_INIT(&clients);
@@ -294,9 +295,8 @@ server_send_exit(void)
if (c->flags & CLIENT_SUSPENDED)
server_client_lost(c);
else {
- if (c->flags & CLIENT_ATTACHED)
- notify_client("client-detached", c);
- proc_send(c->peer, MSG_SHUTDOWN, -1, NULL, 0);
+ c->flags |= CLIENT_EXIT;
+ c->exit_type = CLIENT_EXIT_SHUTDOWN;
}
c->session = NULL;
}