summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa517c8)
raw | patch | inline | side by side (parent: fa517c8)
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 7804f7b8f9b1ae05d1b4770281193c881c39327f..6f34c721374e4ecf11d1a8e75aa723c04501f4ac 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
#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
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 "