author | Florian Forster <octo@collectd.org> | |
Mon, 8 Sep 2014 15:07:39 +0000 (17:07 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 8 Sep 2014 15:07:39 +0000 (17:07 +0200) | ||
commit | c0a9b7b38edf881e134f602b62990518a79bf191 | |
tree | 164ec5884a70c2b21af80862df844973a0bb9bdf | tree | snapshot |
parent | 01f4a6eb87b83ccd2f77e0116e5bd09645c731d5 | commit | diff |
processes plugin: Limit the buffer size used for command line matching.
ARG_MAX is quite big on many systems, for example >100 kByte on
GNU/Linux. This is a problem for systems with tight memory constraints,
for example embedded devices.
This patch uses at most 4 kByte for this, which out to be enough for the
vast majority of users. Users with specific requirements can compile
with "CMDLINE_BUFFER_SIZE=${LOTS}" in their CPPFLAGS to override this
default.
Fixes: #652
ARG_MAX is quite big on many systems, for example >100 kByte on
GNU/Linux. This is a problem for systems with tight memory constraints,
for example embedded devices.
This patch uses at most 4 kByte for this, which out to be enough for the
vast majority of users. Users with specific requirements can compile
with "CMDLINE_BUFFER_SIZE=${LOTS}" in their CPPFLAGS to override this
default.
Fixes: #652
src/processes.c | diff | blob | history |