naemon/naemon-core — pull request #74 by catharsis (2014-06-30 19:50:15+00:00)
Title: Make sure we've succesfully read()

If we've failed to register with the wproc manager, and also fail to
read the entire response, it makes more sense to output the value of
errno, since that might better indicate what's actually going on.

Besides, it's good practice to check your return values.

Signed-off-by: Anton Lofgren