diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-11-21 10:52:19 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-11-21 10:52:19 +0000 |
commit | 8d606ea26d5fc79b845bafbc08d979ecc2ba0529 (patch) | |
tree | f17916ff1579340b723b9253cdab6d117697ab37 /modules.c | |
parent | 214c7bd7f8552f0a07a15373b4a222da6e9e6ba6 (diff) | |
download | rsyslog-8d606ea26d5fc79b845bafbc08d979ecc2ba0529.tar.gz rsyslog-8d606ea26d5fc79b845bafbc08d979ecc2ba0529.tar.xz rsyslog-8d606ea26d5fc79b845bafbc08d979ecc2ba0529.zip |
added an identifier to command handler table - need to identify which
command handler entries need to be removed when module is unloaded
Diffstat (limited to 'modules.c')
-rw-r--r-- | modules.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -187,6 +187,16 @@ static rsRetVal modUnload(modInfo_t *pThis) assert(pThis != NULL); + /* WARNING - the current code does NOT work and causes an abort - this is acceptable right now + * as I am DEVELOPING the working code and will NOT release until it is there. If you use a + * CVS snapshot, be aware of this limitation. For now, you can just remove everything up to + * (but not including) the END DEVEL comment. That will do the trick. rgerhards, 2007-11-21 + */ +dbgprintf("we are now calling modExit()\n"); + + /* END DEVEL */ + + pThis->modExit(); /* tell the module to get ready for unload */ if(pThis->eLinkType == eMOD_LINK_STATIC) { ABORT_FINALIZE(RS_RET_OK); } @@ -195,7 +205,6 @@ static rsRetVal modUnload(modInfo_t *pThis) /* There is a bunch of things we need to do: * - unregister this modules config handler * - unload the module itself - * - think about the instances freeInstance() */ ABORT_FINALIZE(RS_RET_NOT_IMPLEMENTED); |