From 3117834dfc8c277a0547350fa6258d3f6b4c5b46 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Wed, 26 Dec 2001 20:21:39 +0000 Subject: [PATCH] STABLE12-viced-clear-clientdeleted-when-deleted-clients-are-cleaned-up-20011226 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 31c044d67..6f0c3f0b4 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; -- 2.39.5