struct CitContext* next_session = NULL;
char *unique_session_numbers;
int ScheduledShutdown = 0;
-int do_defrag = 0;
time_t server_startup_time;
int panic_fd;
CtdlThreadAllocTSD();
- if (do_defrag) {
- defrag_databases();
- }
-
check_ref_counts();
lprintf(CTDL_INFO, "Creating base rooms (if necessary)\n");
void GenerateRoomDisplay(char *real_room,
struct CitContext *viewed,
struct CitContext *viewer);
-extern int do_defrag;
extern int panic_fd;
char CtdlCheckExpress(void);
#define DATABASE_H
-void defrag_databases (void);
void open_databases (void);
void close_databases (void);
int cdb_store (int cdb, void *key, int keylen, void *data, int datalen);
}
-/*
- * Reclaim unused space in the databases. We need to do each one of
- * these discretely, rather than in a loop.
- *
- * This is a stub function in the Sleepycat DB backend, because there is no
- * such API call available.
- */
-void defrag_databases(void)
-{
- /* do nothing */
-}
-
-
/*
* Cull the database logs
*/
freopen(&argv[a][2], "w", stderr);
}
- else if (!strncmp(argv[a], "-f", 2)) {
- do_defrag = 1;
- }
-
else if (!strncmp(argv[a], "-D", 2)) {
dbg = 1;
}
CtdlLogPrintf(CTDL_EMERG, "citserver: usage: "
"citserver "
"[-lLogFacility] "
- "[-d] [-f] [-D] "
+ "[-d] [-D] "
" [-tTraceFile]"
" [-xLogLevel] [-hHomeDir]\n");
exit(1);
params.debugLevel = ECRASH_DEBUG_VERBOSE;
params.dumpAllThreads = TRUE;
params.useBacktraceSymbols = 1;
-/// BuildSymbolTable(&symbol_table);
-// params.symbolTable = &symbol_table;
params.signals[0]=SIGSEGV;
params.signals[1]=SIGILL;
params.signals[2]=SIGBUS;
params.signals[3]=SIGABRT;
-
eCrash_Init(¶ms);
-
eCrash_RegisterThread("MasterThread", 0);
-
-/// signal(SIGSEGV, cit_panic_backtrace);
#endif
+
/* Initialize the syslogger. Yes, we are really using 0 as the
* facility, because we are going to bitwise-OR the facility to
* the severity of each message, allowing us to write to other