src/rrd_daemon.c: Use `sread' and `swrite' instead of read(2) and write(2).
authorFlorian Forster <octo@verplant.org>
Thu, 3 Jul 2008 09:39:13 +0000 (11:39 +0200)
committerFlorian Forster <octo@verplant.org>
Thu, 3 Jul 2008 09:39:13 +0000 (11:39 +0200)
commitd4dc16f8b4746f862477a44c953e5198546d41ec
treee07d91c714a7ae7c633431d01d3b6064df4bc538
parent08de4f55d4548ce042d43d99f209e266568523f5
src/rrd_daemon.c: Use `sread' and `swrite' instead of read(2) and write(2).

The ``secure'' sread assures that the received string ends with a newline,
strips it off the buffer and assures that the returned buffer is null
terminated. swrite returns success only if all bytes could be written.
src/rrd_daemon.c