summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-28 11:54:34 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-28 11:54:34 +0000
commitb44a5205f7f2f072e0154ebbfede6937a4d82abf (patch)
treefb8ea5e2162de024ca56057e5f8110e97196399f /syslogd.c
parent94bfc28855393a1a688aa5fdc3339b9e2139e10a (diff)
downloadrsyslog-b44a5205f7f2f072e0154ebbfede6937a4d82abf.tar.gz
rsyslog-b44a5205f7f2f072e0154ebbfede6937a4d82abf.tar.xz
rsyslog-b44a5205f7f2f072e0154ebbfede6937a4d82abf.zip
- added "runtime instrumentation" feature to ./configure
- some more cleanup
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/syslogd.c b/syslogd.c
index dfc41b5d..c46b5507 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -2659,7 +2659,7 @@ die(int sig)
/* de-init some modules */
modExitIminternal();
- dbgPrintAllDebugInfo(); /* this is the last spot where this can be done - below output modules are unloaded! */
+ /*dbgPrintAllDebugInfo(); / * this is the last spot where this can be done - below output modules are unloaded! */
/* TODO: this would also be the right place to de-init the builtin output modules. We
* do not currently do that, because the module interface does not allow for
@@ -2682,10 +2682,11 @@ die(int sig)
if(pModDir != NULL)
free(pModDir);
- /* exit classes... */
+ dbgprintf("Clean shutdown completed, bye\n");
+
+ /* exit classes... This MUST be after the dbgprintf (because it de-inits the debug system!) */
dbgClassExit();
- dbgprintf("Clean shutdown completed, bye.\n");
exit(0); /* "good" exit, this is the terminator function for rsyslog [die()] */
}
@@ -4632,15 +4633,20 @@ static void printVersion(void)
printf("\tFEATURE_NETZIP (message compression):\tNo\n");
#endif
#if defined(SYSLOG_INET) && defined(USE_GSSAPI)
- printf("\tFEATURE_GSSAPI (GSSAPI Kerberos 5 support):\tYes\n");
+ printf("\tGSSAPI Kerberos 5 support:\t\tYes\n");
#else
- printf("\tFEATURE_GSSAPI (GSSAPI Kerberos 5 support):\tNo\n");
+ printf("\tGSSAPI Kerberos 5 support:\t\tNo\n");
#endif
#ifndef NDEBUG
printf("\tFEATURE_DEBUG (debug build, slow code):\tYes\n");
#else
printf("\tFEATURE_DEBUG (debug build, slow code):\tNo\n");
#endif
+#ifdef RTINST
+ printf("\tRuntime Instrumentation (slow code):\tYes\n");
+#else
+ printf("\tRuntime Instrumentation (slow code):\tNo\n");
+#endif
printf("\nSee http://www.rsyslog.com for more information.\n");
}