author | Peter Holik <peter@holik.at> | |
Tue, 1 Apr 2008 14:12:10 +0000 (16:12 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Tue, 8 Apr 2008 07:48:21 +0000 (09:48 +0200) | ||
commit | a6ee4ce819e373d257d01a232666f7579d41b00c | |
tree | 49b4b56d2e9f86dd63db20d8530ef34934c262cc | tree | snapshot |
parent | 4a2f8071a17e783bc7afd99a0909a1ed65c0fc25 | commit | diff |
exec plugin: Separate stdout and stderr.
Hi!
Digitemp sends errors to stderr, but collectd handles stdout and stderr
as the same and reports parsing errors.
My idea is to seperate stdout and stderr.
I also removed the special pipe handling checking for stdin...
because exec plugin will alway have a fd > 2 for pipes !!
(fd 0,1 and 2 (stdin, stdout, stderr) are used by collectd with /dev/null if demonized)
now strings from stderr will be reportet by ERROR
cu Peter
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Hi!
Digitemp sends errors to stderr, but collectd handles stdout and stderr
as the same and reports parsing errors.
My idea is to seperate stdout and stderr.
I also removed the special pipe handling checking for stdin...
because exec plugin will alway have a fd > 2 for pipes !!
(fd 0,1 and 2 (stdin, stdout, stderr) are used by collectd with /dev/null if demonized)
now strings from stderr will be reportet by ERROR
cu Peter
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/exec.c | diff | blob | history |