summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-14 17:58:12 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-14 17:58:12 +0000
commite45bbf5c66b5cb08c91bdb99ba1acf5f215c3112 (patch)
tree60d91c5ece80f8025a44484d674dbdcc3825faaa /modules.c
parent8d186b303650c1d942543e28fdf8cf28a451f438 (diff)
downloadrsyslog-e45bbf5c66b5cb08c91bdb99ba1acf5f215c3112.tar.gz
rsyslog-e45bbf5c66b5cb08c91bdb99ba1acf5f215c3112.tar.xz
rsyslog-e45bbf5c66b5cb08c91bdb99ba1acf5f215c3112.zip
graceful termination now supported
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules.c b/modules.c
index 9a3786f2..02ec366b 100644
--- a/modules.c
+++ b/modules.c
@@ -216,6 +216,7 @@ rsRetVal doModInit(rsRetVal (*modInit)(int, int*, rsRetVal(**)(), rsRetVal(*)())
DEFiRet;
modInfo_t *pNew = NULL;
rsRetVal (*modGetType)(eModType_t *pType);
+ rsRetVal (*modGetTermSyncType)(eTermSyncType_t *pType);
assert(modInit != NULL);
@@ -255,6 +256,8 @@ rsRetVal doModInit(rsRetVal (*modInit)(int, int*, rsRetVal(**)(), rsRetVal(*)())
/* ... and now the module-specific interfaces */
switch(pNew->eType) {
case eMOD_IN:
+ CHKiRet((*pNew->modQueryEtryPt)((uchar*)"getTermSyncType", &modGetTermSyncType));
+ CHKiRet((iRet = (*modGetTermSyncType)(&pNew->mod.im.eTermSyncType)) != RS_RET_OK);
CHKiRet((*pNew->modQueryEtryPt)((uchar*)"runInput", &pNew->mod.im.runInput));
break;
case eMOD_OUT: