projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fa517c8
)
processes: warn about long process names on FreeBSD too
author
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 9 Feb 2016 20:03:41 +0000
(21:03 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 9 Feb 2016 21:38:25 +0000
(22:38 +0100)
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
7804f7b
..
6f34c72
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-549,7
+549,7
@@
static int ps_config (oconfig_item_t *ci)
#if KERNEL_LINUX
const size_t max_procname_len = 15;
#if KERNEL_LINUX
const size_t max_procname_len = 15;
-#elif KERNEL_SOLARIS
+#elif KERNEL_SOLARIS
|| KERNEL_FREEBSD
const size_t max_procname_len = MAXCOMLEN -1;
#endif
const size_t max_procname_len = MAXCOMLEN -1;
#endif
@@
-573,7
+573,7
@@
static int ps_config (oconfig_item_t *ci)
c->children_num, c->values[0].value.string);
}
c->children_num, c->values[0].value.string);
}
-#if KERNEL_LINUX || KERNEL_SOLARIS
+#if KERNEL_LINUX || KERNEL_SOLARIS
|| KERNEL_FREEBSD
if (strlen (c->values[0].value.string) > max_procname_len) {
WARNING ("processes plugin: this platform has a %zu character limit "
"to process names. The `Process \"%s\"' option will "
if (strlen (c->values[0].value.string) > max_procname_len) {
WARNING ("processes plugin: this platform has a %zu character limit "
"to process names. The `Process \"%s\"' option will "