diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-09-25 17:47:42 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-09-25 17:47:42 +0000 |
commit | 804b8696a47b37076f8ae0e0b04dcba3e2d1fb7c (patch) | |
tree | 4afaebf2044cd1bb48e6d392c9ac313374ebd16c /server.c | |
parent | b5d23ef38b6fb3483caeead4baf1f0c34aa1292c (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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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); |