X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserver_main.c;h=a2bc2b4ef5c325e72e7485148160b6628a90c082;hb=591b04f1fcb1d91c8da29a1bee0b3182da96f9f7;hp=bd3c0032116a1e9727991b6bb50ab2c630c0727b;hpb=aa62201ed9018fa6150ebc69213a6c9e4afadb9e;p=citadel.git diff --git a/citadel/server_main.c b/citadel/server_main.c index bd3c00321..a2bc2b4ef 100644 --- a/citadel/server_main.c +++ b/citadel/server_main.c @@ -89,9 +89,10 @@ int main(int argc, char **argv) #ifdef HAVE_RUN_DIR struct stat filestats; #endif +#ifdef HAVE_BACKTRACE eCrashParameters params; // eCrashSymbolTable symbol_table; - +#endif /* initialise semaphores here. Patch by Matt and davew * its called here as they are needed by lprintf for thread safety */ @@ -164,6 +165,7 @@ int main(int argc, char **argv) drop_root_perms = 1; } +#ifdef HAVE_BACKTRACE bzero(¶ms, sizeof(params)); params.filename = file_pid_paniclog; panic_fd=open(file_pid_paniclog, O_APPEND|O_CREAT|O_DIRECT); @@ -183,6 +185,7 @@ int main(int argc, char **argv) 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