projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mysql: correct 2 data types in innodb counters
[collectd.git]
/
src
/
python.c
diff --git
a/src/python.c
b/src/python.c
index
0fb49d4
..
81724c0
100644
(file)
--- a/
src/python.c
+++ b/
src/python.c
@@
-933,7
+933,7
@@
static int cpy_init(void) {
pthread_sigmask(SIG_BLOCK, &sigset, NULL);
state = PyEval_SaveThread();
if (do_interactive) {
pthread_sigmask(SIG_BLOCK, &sigset, NULL);
state = PyEval_SaveThread();
if (do_interactive) {
- if (pthread_create(&thread, NULL, cpy_interactive, NULL)) {
+ if (p
lugin_
thread_create(&thread, NULL, cpy_interactive, NULL)) {
ERROR("python: Error creating thread for interactive interpreter.");
}
}
ERROR("python: Error creating thread for interactive interpreter.");
}
}
@@
-1103,8
+1103,8
@@
static int cpy_config(oconfig_item_t *ci) {
cpy_log_exception("python initialization");
continue;
}
cpy_log_exception("python initialization");
continue;
}
- if (PyList_
Append(sys_path
, dir_object) != 0) {
- ERROR("python plugin: Unable to
ap
pend \"%s\" to "
+ if (PyList_
Insert(sys_path, 0
, dir_object) != 0) {
+ ERROR("python plugin: Unable to
pre
pend \"%s\" to "
"python module path.", dir);
cpy_log_exception("python initialization");
}
"python module path.", dir);
cpy_log_exception("python initialization");
}