X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fperl.c;h=96e85622445da09a7b9ad8deae514e215d279e6f;hb=ef493fef09db7227dcaedc2a3cae4a4a1ee4e1a9;hp=7558a50638390fc7918b8d1b60420d14a2f8a3a6;hpb=5ffa49e50eeaf421361fb64ad7105f185251f59f;p=collectd.git diff --git a/src/perl.c b/src/perl.c index 7558a506..96e85622 100644 --- a/src/perl.c +++ b/src/perl.c @@ -1,6 +1,6 @@ /** * collectd - src/perl.c - * Copyright (C) 2007 Sebastian Harl + * Copyright (C) 2007, 2008 Sebastian Harl * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -1478,6 +1478,11 @@ static int perl_config_enabledebugger (pTHX_ oconfig_item_t *ci) return 1; } + if (NULL != perl_threads) { + log_warn ("EnableDebugger has no effects if used after LoadPlugin."); + return 1; + } + value = ci->values[0].value.string; perl_argv = (char **)realloc (perl_argv,