diff options
Diffstat (limited to 'main/collectd/fix-argmax.patch')
-rw-r--r-- | main/collectd/fix-argmax.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/collectd/fix-argmax.patch b/main/collectd/fix-argmax.patch new file mode 100644 index 0000000000..6477bd8730 --- /dev/null +++ b/main/collectd/fix-argmax.patch @@ -0,0 +1,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 + { |