summaryrefslogtreecommitdiffstats
path: root/runtime/glbl.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-11-29 15:43:23 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-11-29 15:43:23 +0100
commit8bf869fafbcc53a134e2842e4fc894ee27ee1c7f (patch)
treef0b246d3c9d1cc5955fdf70496465a8a52086348 /runtime/glbl.c
parentc3d80cd3b0060a37e15e8e323b5a3535ab1933c0 (diff)
downloadrsyslog-8bf869fafbcc53a134e2842e4fc894ee27ee1c7f.tar.gz
rsyslog-8bf869fafbcc53a134e2842e4fc894ee27ee1c7f.tar.bz2
rsyslog-8bf869fafbcc53a134e2842e4fc894ee27ee1c7f.zip
actions now report if they suspend and resume themselves
Diffstat (limited to 'runtime/glbl.c')
-rw-r--r--runtime/glbl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/glbl.c b/runtime/glbl.c
index e1d4e92d..3983a449 100644
--- a/runtime/glbl.c
+++ b/runtime/glbl.c
@@ -43,6 +43,7 @@
#include "prop.h"
#include "atomic.h"
#include "errmsg.h"
+#include "action.h"
#include "rainerscript.h"
#include "net.h"
@@ -105,6 +106,7 @@ static struct cnfparamdescr cnfparamdescr[] = {
{ "defaultnetstreamdriverkeyfile", eCmdHdlrString, 0 },
{ "defaultnetstreamdriver", eCmdHdlrString, 0 },
{ "maxmessagesize", eCmdHdlrSize, 0 },
+ { "action.reportsuspension", eCmdHdlrBinary, 0 }
};
static struct cnfparamblk paramblk =
{ CNFPARAMBLK_VERSION,
@@ -693,6 +695,8 @@ glblDoneLoadCnf(void)
} else if(!strcmp(paramblk.descr[i].name,
"dropmsgswithmaliciousdnsptrrecords")) {
bDropMalPTRMsgs = (int) cnfparamvals[i].val.d.n;
+ } else if(!strcmp(paramblk.descr[i].name, "action.reportsuspension")) {
+ bActionReportSuspension = (int) cnfparamvals[i].val.d.n;
} else if(!strcmp(paramblk.descr[i].name, "maxmessagesize")) {
iMaxLine = (int) cnfparamvals[i].val.d.n;
} else {