line option from the citserver. This is a vestige of
the GDBM days and we're never going back there.
struct CitContext* next_session = NULL;
char *unique_session_numbers;
int ScheduledShutdown = 0;
struct CitContext* next_session = NULL;
char *unique_session_numbers;
int ScheduledShutdown = 0;
time_t server_startup_time;
int panic_fd;
time_t server_startup_time;
int panic_fd;
- if (do_defrag) {
- defrag_databases();
- }
-
check_ref_counts();
lprintf(CTDL_INFO, "Creating base rooms (if necessary)\n");
check_ref_counts();
lprintf(CTDL_INFO, "Creating base rooms (if necessary)\n");
void GenerateRoomDisplay(char *real_room,
struct CitContext *viewed,
struct CitContext *viewer);
void GenerateRoomDisplay(char *real_room,
struct CitContext *viewed,
struct CitContext *viewer);
extern int panic_fd;
char CtdlCheckExpress(void);
extern int panic_fd;
char CtdlCheckExpress(void);
-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);
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
*/
/*
* Cull the database logs
*/
freopen(&argv[a][2], "w", stderr);
}
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;
}
else if (!strncmp(argv[a], "-D", 2)) {
dbg = 1;
}
CtdlLogPrintf(CTDL_EMERG, "citserver: usage: "
"citserver "
"[-lLogFacility] "
CtdlLogPrintf(CTDL_EMERG, "citserver: usage: "
"citserver "
"[-lLogFacility] "
" [-tTraceFile]"
" [-xLogLevel] [-hHomeDir]\n");
exit(1);
" [-tTraceFile]"
" [-xLogLevel] [-hHomeDir]\n");
exit(1);
params.debugLevel = ECRASH_DEBUG_VERBOSE;
params.dumpAllThreads = TRUE;
params.useBacktraceSymbols = 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;
params.signals[0]=SIGSEGV;
params.signals[1]=SIGILL;
params.signals[2]=SIGBUS;
params.signals[3]=SIGABRT;
eCrash_RegisterThread("MasterThread", 0);
eCrash_RegisterThread("MasterThread", 0);
-
-/// signal(SIGSEGV, cit_panic_backtrace);
/* 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
/* 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