diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-18 10:44:32 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-18 10:44:32 +0000 |
commit | 878c480b70993fc9ce9e4495040e7e4ad80e5c37 (patch) | |
tree | 9bdfb0dc316811ce0e6effe63373fe3513b5e28e | |
parent | ccc701b8cbd96ffd26c9957b7654120151e9a90e (diff) | |
download | rsyslog-878c480b70993fc9ce9e4495040e7e4ad80e5c37.tar.gz rsyslog-878c480b70993fc9ce9e4495040e7e4ad80e5c37.tar.xz rsyslog-878c480b70993fc9ce9e4495040e7e4ad80e5c37.zip |
added a clarification comment, which hopefully will be useful in the future
-rw-r--r-- | modules.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -515,6 +515,10 @@ modUnloadAndDestructAll(eModLinkType_t modLinkTypesToUnload) if(modUnlinkAndDestroy(&pModCurr) == RS_RET_MODULE_STILL_REFERENCED) { pModCurr = GetNxt(pModCurr); } + /* Note: if the module was successfully unloaded, it has updated the + * pModCurr pointer to the next module. So we do NOT need to advance + * to the next module on successful unload. + */ } else { pModCurr = GetNxt(pModCurr); } |