summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2012-09-29 06:57:57 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2012-09-29 06:57:57 +0000
commit842955802c6a1214fc7bfc345d205e94568ac103 (patch)
tree6c258c28c50b7064eeb2134e1904f97df5329992 /usr.bin
parent2d2d71639bbee64cbc4a5db2cf0299bc0aa2cf61 (diff)
Do not test client flags against TTY_FREEZE bit, reported by Tom Ryder.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/tty.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tmux/tty.c b/usr.bin/tmux/tty.c
index 4905f02203b..94f237cbbe6 100644
--- a/usr.bin/tmux/tty.c
+++ b/usr.bin/tmux/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.141 2012/09/05 09:59:41 nicm Exp $ */
+/* $OpenBSD: tty.c,v 1.142 2012/09/29 06:57:56 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;