projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8530b9
)
perl plugin: Added check of proper interpreter initialization.
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 2 Aug 2017 05:15:50 +0000
(12:15 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Wed, 2 Aug 2017 05:22:13 +0000
(12:22 +0700)
Closes: #927
src/perl.c
patch
|
blob
|
history
diff --git
a/src/perl.c
b/src/perl.c
index
d01f5c7
..
66ad181
100644
(file)
--- a/
src/perl.c
+++ b/
src/perl.c
@@
-2398,6
+2398,12
@@
static int perl_config_plugin(pTHX_ oconfig_item_t *ci) {
char *plugin;
HV *config;
+ if (NULL == perl_threads) {
+ log_err("No plugins was loaded yet! Put your plugin configuration block "
+ "after relevant `LoadPlugin' option.");
+ return -1;
+ }
+
dSP;
if ((1 != ci->values_num) || (OCONFIG_TYPE_STRING != ci->values[0].type)) {