From: Marc Fournier Date: Tue, 9 Feb 2016 20:03:41 +0000 (+0100) Subject: processes: warn about long process names on FreeBSD too X-Git-Tag: collectd-5.5.2~6^2~10^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a23aac35c6f51758c8498060e75ad06947226abc;p=collectd.git processes: warn about long process names on FreeBSD too --- diff --git a/src/processes.c b/src/processes.c index 7804f7b8..6f34c721 100644 --- 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; -#elif KERNEL_SOLARIS +#elif KERNEL_SOLARIS || KERNEL_FREEBSD 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); } -#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 "