Now we name all the private contexts.
[citadel.git] / citadel / modules / network / serv_network.c
index 969cefed2ca85026836a266eccd0db7947d5a9be..2e963c82574389572501db1d55e2123b91159bf1 100644 (file)
@@ -2085,10 +2085,8 @@ void *network_do_queue(void *args) {
        struct CitContext networkerCC;
 
        /* Give the networker its own private CitContext */
-       memset(&networkerCC, 0, sizeof(struct CitContext));
-       networkerCC.internal_pgm = 1;
-       networkerCC.cs_pid = 0;
-       pthread_setspecific(MyConKey, (void *)&networkerCC );
+       CtdlFillPrivateContext(&networkerCC, "network");
+       citthread_setspecific(MyConKey, (void *)&networkerCC );
 
        /*
         * Run the full set of processing tasks no more frequently