summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-09-29 06:57:56 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-09-29 06:57:56 +0000
commit44dccf7ea27edb938b732f5b9eb1d59ccb9a11fd (patch)
treece6d930bcdf87b0db1b498d1f8810b09643d688f
parent7a3ec77dbdb43058bfd810ed7a63f645c8521ee0 (diff)
Do not test client flags against TTY_FREEZE bit, reported by Tom Ryder.
-rw-r--r--tty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tty.c b/tty.c
index 0270af93..b221031d 100644
--- a/tty.c
+++ b/tty.c
@@ -663,7 +663,9 @@ tty_write(
c = ARRAY_ITEM(&clients, i);
if (c == NULL || c->session == NULL || c->tty.term == NULL)
continue;
- if (c->flags & (CLIENT_SUSPENDED|TTY_FREEZE))
+ if (c->flags & CLIENT_SUSPENDED)
+ continue;
+ if (c->tty.flags & TTY_FREEZE)
continue;
if (c->session->curw->window != wp->window)
continue;