char webcitdir[PATH_MAX] = DATADIR;
char *pidfile = NULL;
char *hdir;
- const char *basedir;
+ const char *basedir = NULL;
#ifdef ENABLE_NLS
char *locale = NULL;
char *mo = NULL;
memset(&Hdr, 0, sizeof(ParsedHttpHdrs));
Hdr.HR.eReqType = eGET;
-
+ http_new_modules(&Hdr);
tv.tv_sec = 0;
tv.tv_usec = 10000;
FD_ZERO(&readset);
end_critical_section(S_SHUTDOWN);
if (shutdown == 1)
{/* we're the one to cleanup the mess. */
+ http_destroy_modules(&Hdr);
lprintf(2, "I'm master shutdown: tagging sessions to be killed.\n");
shutdown_sessions();
lprintf(2, "master shutdown: waiting for others\n");