diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-12 14:08:21 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-12 14:08:21 +0000 |
commit | 618a7f6a220563a50909d0e15eb90ce222aced31 (patch) | |
tree | 484439581a66494bbed91aa6e53f4b571126e820 /modules.c | |
parent | 9ddee5b38772f42f4371c6828a832f0d6267251d (diff) | |
download | rsyslog-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.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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; } |