#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <execinfo.h>
#include <pthread.h>
#include "sysdep_decls.h"
#include "ecrash.h"
#define NIY() printf("%s: Not Implemented Yet!\n", __FUNCTION__)
#ifdef HAVE_BACKTRACE
+#include <execinfo.h>
static eCrashParameters gbl_params;
static int gbl_fd=-1;
CtdlDestroyFixedOutputHooks();
CtdlDestroySessionHooks();
CtdlDestroyServiceHook();
+ #ifdef HAVE_BACKTRACE
eCrash_Uninit();
+ #endif
}
cdb_allocate_tsd();
// Register for tracing
+ #ifdef HAVE_BACKTRACE
eCrash_RegisterThread("WorkerThread", 0);
-
+ #endif
while (!time_to_die) {
/* make doubly sure we're not holding any stale db handles
}
if (con != NULL) free (con);//// TODO: could this harm other threads?
/* If control reaches this point, the server is shutting down */
+ #ifdef HAVE_BACKTRACE
eCrash_UnregisterThread();
+ #endif
return(NULL);
}