summaryrefslogtreecommitdiffstats
path: root/runtime/debug.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-06-01 16:11:11 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-06-01 16:11:11 +0200
commit56fc7acc06ad9b22f88566c1e9dc5ed4f203de45 (patch)
tree9726d5647bdcfc2fd80bc48e8a12b69d02abeb59 /runtime/debug.c
parent68f7a7bfd21a63c6b3f753341ac48a8873a260a7 (diff)
parent9020647cdcdb0ef132491838e36c870f4e4e90ea (diff)
downloadrsyslog-56fc7acc06ad9b22f88566c1e9dc5ed4f203de45.tar.gz
rsyslog-56fc7acc06ad9b22f88566c1e9dc5ed4f203de45.tar.xz
rsyslog-56fc7acc06ad9b22f88566c1e9dc5ed4f203de45.zip
Merge branch 'v5-stable' into v6-stable
Diffstat (limited to 'runtime/debug.c')
-rw-r--r--runtime/debug.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/debug.c b/runtime/debug.c
index 955076e2..edc4a255 100644
--- a/runtime/debug.c
+++ b/runtime/debug.c
@@ -68,7 +68,7 @@ static int bPrintAllDebugOnExit = 0;
static int bAbortTrace = 1; /* print a trace after SIGABRT or SIGSEGV */
static char *pszAltDbgFileName = NULL; /* if set, debug output is *also* sent to here */
static int altdbg = -1; /* and the handle for alternate debug output */
-static int stddbg;
+int stddbg = 1; /* the handle for regular debug output, set to stdout if not forking, -1 otherwise */
/* list of files/objects that should be printed */
typedef struct dbgPrintName_s {
@@ -1303,8 +1303,6 @@ dbgGetRuntimeOptions(void)
uchar *optname;
/* set some defaults */
- stddbg = 1;
-
if((pszOpts = (uchar*) getenv("RSYSLOG_DEBUG")) != NULL) {
/* we have options set, so let's process them */
while(dbgGetRTOptNamVal(&pszOpts, &optname, &optval)) {