blob: 6477bd873029e3d291e2e4d8e31248e59c8745e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Bug reported upstream:
https://github.com/collectd/collectd/issues/652
Workaround patch by Timo Teräs <timo.teras@iki.fi>
diff -ru collectd-5.4.1.orig/src/processes.c collectd-5.4.1/src/processes.c
--- collectd-5.4.1.orig/src/processes.c 2014-01-26 10:09:14.000000000 -0200
+++ collectd-5.4.1/src/processes.c 2014-06-20 11:58:31.558125613 -0300
@@ -128,9 +128,9 @@
# include <kstat.h>
#endif
-#ifndef ARG_MAX
-# define ARG_MAX 4096
-#endif
+/* Force 4k ARG_MAX to make it work as stack allocated buffer */
+#undef ARG_MAX
+#define ARG_MAX 4096
typedef struct procstat_entry_s
{
|