*/
void RemoveContext (CitContext *con)
{
+ const char *c;
if (con==NULL) {
syslog(LOG_ERR,
"WARNING: RemoveContext() called with NULL!\n");
return;
}
- syslog(LOG_DEBUG, "RemoveContext() session %d\n", con->cs_pid);
+ c = con->ServiceName;
+ if (c == NULL)
+ c = "WTF?";
+ syslog(LOG_DEBUG, "RemoveContext(%s) session %d\n", c, con->cs_pid);
+ cit_backtrace ();
/* Run any cleanup routines registered by loadable modules.
* Note: We have to "become_session()" because the cleanup functions
ifneq (,$(findstring profiling,$(DEB_BUILD_OPTIONS)))
PROFILE_ARGS= --with-gprof
endif
+
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0 -ggdb -rdynamic -D_GNU_SOURCE -MD -MP -D TECH_PREVIEW
LDFLAGS+=-Wl,--no-undefined -Wl,--as-needed
CFLAGS += -O2
endif
+ifneq (,$(findstring backtrace,$(DEB_BUILD_OPTIONS)))
+ CFLAGS+= -rdynamic -D_GNU_SOURCE -MD -MP
+ LDFLAGS+=-Wl,--no-undefined -Wl,--as-needed
+ EXTRA_ARGS += --with-backtrace
+endif
+
ifneq (,$(findstring threadoff,$(DEB_BUILD_OPTIONS)))
THREAD_ARGS=--without-threaded-client
CFLAGS += -D WITH_THREADLOG