processes: warn about long process names on FreeBSD too
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 9 Feb 2016 20:03:41 +0000 (21:03 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 9 Feb 2016 21:38:25 +0000 (22:38 +0100)
src/processes.c

index 7804f7b..6f34c72 100644 (file)
@@ -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 "