summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-07-11 18:23:04 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-07-11 18:23:04 +0200
commit1790a23aea2d98dd855d55a990aae18c5eb0e8b3 (patch)
tree59076e4f9128c2152414cc05375c25b45e929497
parentc4264d6ff4cbbb4d7cc5d13017aa43abe13d9b98 (diff)
downloadrsyslog-1790a23aea2d98dd855d55a990aae18c5eb0e8b3.tar.gz
rsyslog-1790a23aea2d98dd855d55a990aae18c5eb0e8b3.tar.xz
rsyslog-1790a23aea2d98dd855d55a990aae18c5eb0e8b3.zip
temporary: some debug instrumentation to help find a segfault on freebsd
-rw-r--r--tools/syslogd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 3f97a70f..b005b6d0 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -908,6 +908,8 @@ logmsgInternal(int iErr, int pri, uchar *msg, int flags)
datetime.getCurrTime(&(pMsg->tTIMESTAMP)); /* use the current time! */
flags |= INTERNAL_MSG;
+RUNLOG_VAR("%d", bHaveMainQueue);
+RUNLOG_VAR("%p", pMsg);
if(bHaveMainQueue == 0) { /* not yet in queued mode */
iminternalAddMsg(pri, pMsg, flags);
} else {
@@ -1626,10 +1628,14 @@ logmsg(msg_t *pMsg, int flags)
/* ---------------------- END PARSING ---------------- */
+RUNLOG;
/* now submit the message to the main queue - then we are done */
pMsg->msgFlags = flags;
+RUNLOG;
MsgPrepareEnqueue(pMsg);
+RUNLOG;
queueEnqObj(pMsgQueue, pMsg->flowCtlType, (void*) pMsg);
+RUNLOG;
ENDfunc
}