summaryrefslogtreecommitdiffstats
path: root/server.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-09-25 17:47:42 +0000
committerTiago Cunha <tcunha@gmx.com>2009-09-25 17:47:42 +0000
commit804b8696a47b37076f8ae0e0b04dcba3e2d1fb7c (patch)
tree4afaebf2044cd1bb48e6d392c9ac313374ebd16c /server.c
parentb5d23ef38b6fb3483caeead4baf1f0c34aa1292c (diff)
Sync OpenBSD patchset 352:
Don't allow locked or suspended clients to limit the size of active clients.
Diffstat (limited to 'server.c')
-rw-r--r--server.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/server.c b/server.c
index cd5acc22..79587080 100644
--- a/server.c
+++ b/server.c
@@ -1,4 +1,4 @@
-/* $Id: server.c,v 1.193 2009-09-23 15:10:37 tcunha Exp $ */
+/* $Id: server.c,v 1.194 2009-09-25 17:47:42 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -1197,8 +1197,10 @@ server_second_timers(void)
t = time(NULL);
xtimeout = options_get_number(&global_s_options, "lock-after-time");
- if (xtimeout > 0 && t > server_activity + xtimeout)
+ if (xtimeout > 0 && t > server_activity + xtimeout) {
server_lock();
+ recalculate_sizes();
+ }
for (i = 0; i < ARRAY_LENGTH(&windows); i++) {
w = ARRAY_ITEM(&windows, i);