summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-12 14:08:21 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-12 14:08:21 +0000
commit618a7f6a220563a50909d0e15eb90ce222aced31 (patch)
tree484439581a66494bbed91aa6e53f4b571126e820 /modules.c
parent9ddee5b38772f42f4371c6828a832f0d6267251d (diff)
downloadrsyslog-618a7f6a220563a50909d0e15eb90ce222aced31.tar.gz
rsyslog-618a7f6a220563a50909d0e15eb90ce222aced31.tar.xz
rsyslog-618a7f6a220563a50909d0e15eb90ce222aced31.zip
changed omgssapi and omfwd to utilize new object calling interface; made a
tcpclt class; (stage work, among others, for more intelligent recovery from TCP session recovery)
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules.c b/modules.c
index 357a2fe9..70945cae 100644
--- a/modules.c
+++ b/modules.c
@@ -484,7 +484,12 @@ modUnlinkAndDestroy(modInfo_t *pThis)
/* finally, we are ready for the module to go away... */
dbgprintf("Unloading module %s\n", modGetName(pThis));
CHKiRet(modPrepareUnload(pThis));
+modInfo_t *prev, *next;
+char *name = strdup(pThis->pszName);
+prev = pThis->pPrev; next = pThis->pNext;
moduleDestruct(pThis);
+dbgprintf("end unload, pThis %p (%s), prev %p, next %p\n", pThis, name, prev, next);
+free(name);
finalize_it:
RETiRet;
@@ -512,6 +517,13 @@ modUnloadAndDestructAll(eModLinkType_t modLinkTypesToUnload)
}
}
+# ifdef DEBUG
+ if(pLoadedModules != NULL) {
+ dbgprintf("modules still loaded after module.UnloadAndDestructAll:\n");
+ modUsrPrintAll();
+ }
+# endif
+
RETiRet;
}