Code

ARG_MAX on Solaris is *very* large, 2 MB. Allocating that much on the
authorhume-github <hume-ml+github@bofh.ca>
Thu, 27 Sep 2012 13:43:09 +0000 (10:43 -0300)
committerFlorian Forster <octo@collectd.org>
Tue, 2 Oct 2012 07:32:47 +0000 (09:32 +0200)
commit29781310b7c874032adf2bfff1386bf192f2e35c
treee16887e077e0cd422dbd4e191e07ad7b5fbc3b52
parent108c5bdea8339fdb27325d891a81ee7e05117ec8
ARG_MAX on Solaris is *very* large, 2 MB.  Allocating that much on the
stack (local variable) overflows the thread stack and crashes the
process in weird and interesting ways.

"int i" is a useless variable and breaks the build with -Werror.

Signed-off-by: Florian Forster <octo@collectd.org>
src/processes.c