summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 881f4cb)
raw | patch | inline | side by side (parent: 881f4cb)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 4 Feb 2007 09:14:35 +0000 (10:14 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 4 Feb 2007 09:14:35 +0000 (10:14 +0100) |
src/plugin.c | patch | blob | history |
diff --git a/src/plugin.c b/src/plugin.c
index 2daeea9fd67e42e8ef36c5b6eee4e185542ed8e1..1a029e40ba5060375865723859fec957787fa780 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
{
int (*callback) (void);
llentry_t *le;
+ int status;
gethostname (hostname, sizeof (hostname));
while (le != NULL)
{
callback = le->value;
- (*callback) ();
+ status = (*callback) ();
+
+ if (status != 0)
+ {
+ syslog (LOG_ERR, "Initialization of plugin `%s' "
+ "failed with status %i. "
+ "Plugin will be unloaded. TODO!",
+ le->key, status);
+ plugin_unregister_read (le->key);
+ }
le = le->next;
}