X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fnetwork%2Fserv_network.c;h=2e963c82574389572501db1d55e2123b91159bf1;hb=e739cb7572012e2a0a9b820757f4e2adf7b37a63;hp=969cefed2ca85026836a266eccd0db7947d5a9be;hpb=60617b628daa3da5c4d8343d7623e70666ff4a3e;p=citadel.git diff --git a/citadel/modules/network/serv_network.c b/citadel/modules/network/serv_network.c index 969cefed2..2e963c825 100644 --- a/citadel/modules/network/serv_network.c +++ b/citadel/modules/network/serv_network.c @@ -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