projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4e4fad
)
erlang plugin: Improve handling of communication errors.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 14 Nov 2009 09:14:26 +0000
(10:14 +0100)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Sat, 14 Nov 2009 09:14:26 +0000
(10:14 +0100)
src/erlang.c
patch
|
blob
|
history
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. */