summaryrefslogtreecommitdiffstats
path: root/syslogd.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-17 09:42:03 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-17 09:42:03 +0000
commit83c6a060be679722cefc531eaec40771ba5a3f21 (patch)
treecce8747ddb453151d478115f0da284114cc0a0cc /syslogd.c
parentb5d69df3af01cf722f11c560c67cfa6b2b7cf765 (diff)
downloadrsyslog-83c6a060be679722cefc531eaec40771ba5a3f21.tar.gz
rsyslog-83c6a060be679722cefc531eaec40771ba5a3f21.tar.xz
rsyslog-83c6a060be679722cefc531eaec40771ba5a3f21.zip
implemented $MarkMessagePeriod config directive
Diffstat (limited to 'syslogd.c')
-rw-r--r--syslogd.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/syslogd.c b/syslogd.c
index 953beb59..e24a4029 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -4214,13 +4214,16 @@ startInputModules(void)
/* loop through all modules and activate them (brr...) */
pMod = modGetNxtType(NULL, eMOD_IN);
while(pMod != NULL) {
- /* activate here */
-dbgprintf("thread creating...\n");
- thrdCreate(pMod->mod.im.runInput, pMod->mod.im.eTermSyncType);
- pMod = modGetNxtType(pMod, eMOD_IN);
+ if((iRet = pMod->mod.im.willRun()) == RS_RET_OK) {
+ /* activate here */
+ thrdCreate(pMod->mod.im.runInput, pMod->mod.im.eTermSyncType);
+ } else {
+ dbgprintf("module %lx will not run, iRet %d\n", (unsigned long) pMod, iRet);
+ }
+ pMod = modGetNxtType(pMod, eMOD_IN);
}
- return iRet;
+ return RS_RET_OK; /* intentional: we do not care about module errors */
}