viced-clear-clientdeleted-when-deleted-clients-are-cleaned-up-20011102
authorNickolai Zeldovich <kolya@mit.edu>
Fri, 2 Nov 2001 07:57:12 +0000 (07:57 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 2 Nov 2001 07:57:12 +0000 (07:57 +0000)
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

index 31c044d..6f0c3f0 100644 (file)
@@ -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;