diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-17 09:42:03 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-17 09:42:03 +0000 |
commit | 83c6a060be679722cefc531eaec40771ba5a3f21 (patch) | |
tree | cce8747ddb453151d478115f0da284114cc0a0cc /syslogd.c | |
parent | b5d69df3af01cf722f11c560c67cfa6b2b7cf765 (diff) | |
download | rsyslog-83c6a060be679722cefc531eaec40771ba5a3f21.tar.gz rsyslog-83c6a060be679722cefc531eaec40771ba5a3f21.tar.xz rsyslog-83c6a060be679722cefc531eaec40771ba5a3f21.zip |
implemented $MarkMessagePeriod config directive
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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 */ } |