summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-11 07:34:15 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-11 07:34:15 +0000
commit463e2d8f186e631d07cf8e45b62c725fbc817f8e (patch)
tree64effabde05b72c3e898aba71668b3b6c6be75e8
parent3141c15442cdb669d6e5a609011e655e2b1e8815 (diff)
downloadrsyslog-463e2d8f186e631d07cf8e45b62c725fbc817f8e.tar.gz
rsyslog-463e2d8f186e631d07cf8e45b62c725fbc817f8e.tar.xz
rsyslog-463e2d8f186e631d07cf8e45b62c725fbc817f8e.zip
a small inline doc fix
-rw-r--r--syslogd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/syslogd.c b/syslogd.c
index cfe239ac..c6c5dc2f 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -2492,9 +2492,11 @@ static rsRetVal callAction(msg_t *pMsg, action_t *pAction)
if(pAction->f_pMsg != NULL) {
if(pAction->f_prevcount > 0)
CHKiRet(fprintlog(pAction));
- /* we do not care about iRet above - I think it's right but if we have
- * some troubles, you know where to look at ;) -- rgerhards, 2007-08-01
- */
+ /* if we run into trouble (most importantly a suspended
+ * action), we keep the old message (by virtue of not
+ * destructing it) and discard the new one (done
+ * automatically when we return.
+ */
MsgDestruct(pAction->f_pMsg);
}
pAction->f_pMsg = MsgAddRef(pMsg);