projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3f21e9
)
processes plugin: Call kvm_close() after kvm_geterr().
author
Florian Forster
<octo@huhu.verplant.org>
Tue, 8 Mar 2011 08:36:13 +0000
(09:36 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Tue, 8 Mar 2011 08:36:13 +0000
(09:36 +0100)
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
856296c
..
99af276
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-1492,9
+1492,9
@@
static int ps_read (void)
procs = kvm_getprocs(kd, KERN_PROC_ALL, 0, &count);
if (procs == NULL)
{
- kvm_close (kd);
ERROR ("processes plugin: Cannot get kvm processes list: %s",
kvm_geterr(kd));
+ kvm_close (kd);
return (0);
}