projects
/
project
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3cac366
)
Register dummy stderr callback when ivoking plugins calls to avoid filling the ustrea...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 1 Sep 2013 20:42:17 +0000
(22:42 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 1 Sep 2013 20:42:17 +0000
(22:42 +0200)
plugin.c
patch
|
blob
|
history
diff --git
a/plugin.c
b/plugin.c
index
37deddf
..
d6bdcef
100644
(file)
--- a/
plugin.c
+++ b/
plugin.c
@@
-94,6
+94,12
@@
rpc_plugin_call_stdout_cb(struct blob_buf *blob, char *buf, int len, void *priv)
}
static int
}
static int
+rpc_plugin_call_stderr_cb(struct blob_buf *blob, char *buf, int len, void *priv)
+{
+ return len;
+}
+
+static int
rpc_plugin_call_finish_cb(struct blob_buf *blob, int stat, void *priv)
{
struct call_context *c = priv;
rpc_plugin_call_finish_cb(struct blob_buf *blob, int stat, void *priv)
{
struct call_context *c = priv;
@@
-160,8
+166,8
@@
rpc_plugin_call(struct ubus_context *ctx, struct ubus_object *obj,
c->argv[2] = c->method;
return rpc_exec(c->argv, rpc_plugin_call_stdin_cb,
c->argv[2] = c->method;
return rpc_exec(c->argv, rpc_plugin_call_stdin_cb,
- rpc_plugin_call_stdout_cb,
NULL, rpc_plugin_call_finish
_cb,
- c, ctx, req);
+ rpc_plugin_call_stdout_cb,
rpc_plugin_call_stderr
_cb,
+
rpc_plugin_call_finish_cb,
c, ctx, req);
fail:
if (c)
fail:
if (c)