summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-18 10:44:32 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-18 10:44:32 +0000
commit878c480b70993fc9ce9e4495040e7e4ad80e5c37 (patch)
tree9bdfb0dc316811ce0e6effe63373fe3513b5e28e
parentccc701b8cbd96ffd26c9957b7654120151e9a90e (diff)
downloadrsyslog-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules.c b/modules.c
index cfbe20ac..4f4fed11 100644
--- a/modules.c
+++ b/modules.c
@@ -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);
}