#include "control.h"
#include "config.h"
-int DebugSession = 0;
-
pthread_key_t MyConKey; /* TSD key for MyContext() */
-
-
CitContext masterCC;
CitContext *ContextList = NULL;
-
time_t last_purge = 0; /* Last dead session purge */
int num_sessions = 0; /* Current number of sessions */
int next_pid = 0;
me = (CitContext *) malloc(sizeof(CitContext));
if (me == NULL) {
- syslog(LOG_ERR, "citserver: malloc() failed: %s", strerror(errno));
+ syslog(LOG_ERR, "citserver: malloc() failed: %m");
return NULL;
}
memset(me, 0, sizeof(CitContext));
me = (CitContext *) malloc(sizeof(CitContext));
if (me == NULL) {
- syslog(LOG_ERR, "citserver: malloc() failed: %s", strerror(errno));
+ syslog(LOG_ERR, "citserver: malloc() failed: %m");
return NULL;
}
memcpy(me, CloneMe, sizeof(CitContext));
}
-void DebugSessionEnable(const int n)
-{
- DebugSession = n;
-}
CTDL_MODULE_INIT(session)
{
if (!threading) {
- CtdlRegisterDebugFlagHook(HKEY("session"), DebugSessionEnable, &DebugSession);
}
return "session";
}