diff options
author | 2020-06-01 09:43:00 +0000 | |
---|---|---|
committer | 2020-06-01 09:43:00 +0000 | |
commit | a34cf9c854af10b16e42da7f8b8e02d14cf4d44e (patch) | |
tree | fdfafcc3f79b8a18ea3700b43f7f2428263e0174 /usr.bin/tmux/server.c | |
parent | Revert "Ignore new Rxblock ack agreements until the WPA handshake is done." (diff) | |
download | wireguard-openbsd-a34cf9c854af10b16e42da7f8b8e02d14cf4d44e.tar.xz wireguard-openbsd-a34cf9c854af10b16e42da7f8b8e02d14cf4d44e.zip |
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 'usr.bin/tmux/server.c')
-rw-r--r-- | usr.bin/tmux/server.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c index 3ccba1652f5..3b8f4529c97 100644 --- a/usr.bin/tmux/server.c +++ b/usr.bin/tmux/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.192 2020/05/16 16:30:59 nicm Exp $ */ +/* $OpenBSD: server.c,v 1.193 2020/06/01 09:43:01 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -295,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; } |