summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 339f53c)
raw | patch | inline | side by side (parent: 339f53c)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Thu, 21 Jan 2016 14:45:51 +0000 (15:45 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 9 Feb 2016 20:40:47 +0000 (21:40 +0100) |
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index 2c6afc2965227154469f52d4d5503b8e1a66b6d7..7804f7b8f9b1ae05d1b4770281193c881c39327f 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
# undef SAVE_FOB_64
#endif
+# include <sys/user.h>
# include <dirent.h>
/* #endif KERNEL_SOLARIS */
#if KERNEL_LINUX
const size_t max_procname_len = 15;
+#elif KERNEL_SOLARIS
+ const size_t max_procname_len = MAXCOMLEN -1;
#endif
for (i = 0; i < ci->children_num; ++i) {
c->children_num, c->values[0].value.string);
}
-#if KERNEL_LINUX
+#if KERNEL_LINUX || KERNEL_SOLARIS
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 "