summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 148e873)
raw | patch | inline | side by side (parent: 148e873)
author | Florian Forster <octo@noris.net> | |
Wed, 20 Aug 2008 10:01:50 +0000 (12:01 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 20 Aug 2008 10:01:50 +0000 (12:01 +0200) |
Since this function is most often called from the unixsock plugin,
which creates a separate thread for handling connections, this did
not effect the rest of the daemon and was kind of tricky to track
down. :/ What a stupid mistake :(
which creates a separate thread for handling connections, this did
not effect the rest of the daemon and was kind of tricky to track
down. :/ What a stupid mistake :(
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index bf8fb085685e0e48ba4bf6c570b0b31618e1d60c..cedd8b0fb22ed68596b237e30b9dc012334680d2 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
{
if ((plugin != NULL)
&& (strcmp (plugin, le->key) != 0))
+ {
+ le = le->next;
continue;
+ }
callback = (int (*) (int, const char *)) le->value;
- le = le->next;
-
(*callback) (timeout, identifier);
+
+ le = le->next;
}
return (0);
} /* int plugin_flush */