summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-21 20:16:41 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-21 20:16:41 +0000
commite66428b9ad43022b35294758bfc25b1d033ff934 (patch)
tree0a421f42b6a2cd47de7d45a0f58dc849c652576e /usr.bin/tmux
parent78dfafc8ede858a0b7f036e6c190607741072f08 (diff)
Don't try to unsuspend a client if it isn't suspended.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/server-msg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server-msg.c b/usr.bin/tmux/server-msg.c
index 761cbf66a32..4d8e851ecb7 100644
--- a/usr.bin/tmux/server-msg.c
+++ b/usr.bin/tmux/server-msg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-msg.c,v 1.23 2009/10/10 09:46:11 nicm Exp $ */
+/* $OpenBSD: server-msg.c,v 1.24 2009/10/21 20:16:40 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -101,6 +101,8 @@ server_msg_dispatch(struct client *c)
if (datalen != 0)
fatalx("bad MSG_WAKEUP size");
+ if (!(c->flags & CLIENT_SUSPENDED))
+ break;
c->flags &= ~CLIENT_SUSPENDED;
tty_start_tty(&c->tty);
server_redraw_client(c);