From 3aaaa28ba8360100ce94c784d7e23ff99dc69e27 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Fri, 2 Nov 2001 07:57:12 +0000 Subject: [PATCH 1/1] viced-clear-clientdeleted-when-deleted-clients-are-cleaned-up-20011102 Currently nothing clears the CLIENTDELETED flag in hosts, so once a client has been deleted, h_TossStuff_r() will keep getting called with every host release. This patch clears the CLIENTDELETED flag every time we take care of deleted clients. --- src/viced/host.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/viced/host.c b/src/viced/host.c index 31c044d..6f0c3f0 100644 --- a/src/viced/host.c +++ b/src/viced/host.c @@ -748,6 +748,10 @@ h_TossStuff_r(host) FreeCE(client); } else cp = &client->next; } + + /* We've just cleaned out all the deleted clients; clear the flag */ + host->hostFlags &= ~CLIENTDELETED; + if (host->hostFlags & HOSTDELETED) { register struct h_hashChain **hp, *th; register struct rx_connection *rxconn; -- 1.9.4