X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fconfigfile.c;fp=src%2Fconfigfile.c;h=e680aba771bf13b3b0bf76582f0019e1a78779f2;hb=003c6e86b4807923a40a89112327dda39057f783;hp=ac5e8edcb94f2bfda66c5eefab67dfab3c66e6db;hpb=deec59d985b53371caac1a1b364cfee63ecbf3bd;p=collectd.git diff --git a/src/configfile.c b/src/configfile.c index ac5e8edc..e680aba7 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -277,21 +277,6 @@ static int dispatch_loadplugin (const oconfig_item_t *ci) memset (&ctx, 0, sizeof (ctx)); ctx.interval = cf_get_default_interval (); - /* - * XXX: Magic at work: - * - * Some of the language bindings, for example the Python and Perl - * plugins, need to be able to export symbols to the scripts they run. - * For this to happen, the "Globals" flag needs to be set. - * Unfortunately, this technical detail is hard to explain to the - * average user and she shouldn't have to worry about this, ideally. - * So in order to save everyone's sanity use a different default for a - * handful of special plugins. --octo - */ - if ((strcasecmp ("Perl", name) == 0) - || (strcasecmp ("Python", name) == 0)) - flags |= PLUGIN_FLAGS_GLOBAL; - for (i = 0; i < ci->children_num; ++i) { if (strcasecmp("Globals", ci->children[i].key) == 0) cf_util_get_flag (ci->children + i, &flags, PLUGIN_FLAGS_GLOBAL);