collectd/collectd — pull request #138 by hume-github (2012-09-27 13:50:33+00:00)
Title: Fix SEGV/SIGBUS crash on Solaris, build fail with -Werror

ARG_MAX is way too large to use in a stack variable in a thread on Solaris. Use PRARGSZ, which is the actual size of the "cmdline" buffer in /proc.

Also removed 'int i', which is an unused variable and breaks building with --enable-debug.