projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
erlang plugin: Improve handling of communication errors.
[collectd.git]
/
src
/
erlang.c
diff --git
a/src/erlang.c
b/src/erlang.c
index
9728614
..
65d8f9e
100644
(file)
--- a/
src/erlang.c
+++ b/
src/erlang.c
@@
-551,22
+551,22
@@
static int handle_dispatch_values (ce_connection_info_t *cinfo, /* {{{ */
if (status != 0)
{
free (vl.values);
if (status != 0)
{
free (vl.values);
- send_error (cinfo->fd, req->from, "Cannot parse argument as value list.");
- return (
0
);
+ s
tatus = s
end_error (cinfo->fd, req->from, "Cannot parse argument as value list.");
+ return (
status
);
}
status = plugin_dispatch_values (&vl);
if (status != 0)
{
free (vl.values);
}
status = plugin_dispatch_values (&vl);
if (status != 0)
{
free (vl.values);
- send_error (cinfo->fd, req->from, "plugin_dispatch_values failed.");
- return (
0
);
+ s
tatus = s
end_error (cinfo->fd, req->from, "plugin_dispatch_values failed.");
+ return (
status
);
}
free (vl.values);
}
free (vl.values);
- send_atom (cinfo->fd, req->from, "success");
+ s
tatus = s
end_atom (cinfo->fd, req->from, "success");
- return (
0
);
+ return (
status
);
} /* }}} int handle_dispatch_values */
/* Returns non-zero only if the request could not be handled gracefully. */
} /* }}} int handle_dispatch_values */
/* Returns non-zero only if the request could not be handled gracefully. */