Suppress successful putval responses to exec plugin
authorAntonio Russo <antonio.e.russo@gmail.com>
Tue, 16 Feb 2016 19:22:48 +0000 (11:22 -0800)
committerAntonio Russo <antonio.e.russo@gmail.com>
Tue, 16 Feb 2016 19:33:48 +0000 (11:33 -0800)
commit53de2cf4354da65843104ea430d6fdf0375a0c64
treed754ce4cd3b82b6c5ce97fb66d038ad3ba21a3ca
parent00f9279d9711c9882b65d54fd72c2f25a3f403fc
Suppress successful putval responses to exec plugin

exec plugins are never supposed to receive responses
to putval commands. These responses are instead sent
to STDOUT, which is often attached to /dev/null.
Newer init systems, such as systemd, instead log
these responses.

This patch preserves the expected behavior by suppressing
the response if and only if the destination is STDOUT.
src/utils_cmd_putval.c