Code

src/collectd-nagios.c: Improve handling of lines returned from `GETVAL'.
authorFlorian Forster <octo@huhu.verplant.org>
Mon, 6 Oct 2008 09:46:59 +0000 (11:46 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 6 Oct 2008 09:46:59 +0000 (11:46 +0200)
commit953bd0f881faa40c415a1f1a9d7e2da739d343ff
tree16d02fa6c8d1e6241306b8f9043ae003d1b94901
parentf713f3a43bb624186cc42313fa37fd79c5cf81be
src/collectd-nagios.c: Improve handling of lines returned from `GETVAL'.

Then selecting only certain data sources with the `-d' option, the program
would try to read more lines from the server than the server reports, resulting
in the communication never finishing.

This patch resolves that problem and introduces a couple other error handling
blocks.

Thanks to Fabian Linzberger for pointing this out.
src/collectd-nagios.c