summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server-client.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2011-07-08 21:51:40 +0000
committernicm <nicm@openbsd.org>2011-07-08 21:51:40 +0000
commit58dca43a8047bb9428951dcb4ceebcf71e9c1b99 (patch)
tree522e43fe74045006ef6616312aac4c29c76ce20f /usr.bin/tmux/server-client.c
parentmove the pflog0 setup to the pflogd script and only (diff)
downloadwireguard-openbsd-58dca43a8047bb9428951dcb4ceebcf71e9c1b99.tar.xz
wireguard-openbsd-58dca43a8047bb9428951dcb4ceebcf71e9c1b99.zip
Do not continue to send data to suspended/locked clients or there will
be a huge rush of it after they are resumed/unlocked. The main output path was fine but status line updates and the terminal state reset code were missed.
Diffstat (limited to 'usr.bin/tmux/server-client.c')
-rw-r--r--usr.bin/tmux/server-client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 621da228463..7a8e39a0c57 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.59 2011/05/20 19:03:58 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.60 2011/07/08 21:51:40 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -474,6 +474,9 @@ server_client_reset_state(struct client *c)
struct options *wo = &w->options;
int status, mode;
+ if (c->flags & CLIENT_SUSPENDED)
+ return;
+
tty_region(&c->tty, 0, c->tty.sy - 1);
status = options_get_number(oo, "status");