From dc8b7d6b031a91721f17b04a82105578ed2585db Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Fri, 23 Oct 2009 17:33:26 +0000 Subject: [PATCH] Sync OpenBSD patchset 434: Don't try to unsuspend a client if it isn't suspended. --- server-msg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server-msg.c b/server-msg.c index 2664643d..3c01d7cc 100644 --- a/server-msg.c +++ b/server-msg.c @@ -1,4 +1,4 @@ -/* $Id: server-msg.c,v 1.91 2009-10-11 23:30:28 tcunha Exp $ */ +/* $Id: server-msg.c,v 1.92 2009-10-23 17:33:26 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -100,6 +100,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);