Code Review
/
src
/
app-framework-binder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
017a0f3
)
afb-monitor: update hooks for tracing
author
José Bollo
<jose.bollo@iot.bzh>
Wed, 23 Aug 2017 16:45:09 +0000
(18:45 +0200)
committer
José Bollo
<jose.bollo@iot.bzh>
Wed, 23 Aug 2017 16:58:03 +0000
(18:58 +0200)
Updating hooks is needed (at the moment) after trace requests
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
src/afb-monitor.c
patch
|
blob
|
history
diff --git
a/src/afb-monitor.c
b/src/afb-monitor.c
index
369c5bf
..
4bedc49
100644
(file)
--- a/
src/afb-monitor.c
+++ b/
src/afb-monitor.c
@@
-345,13
+345,15
@@
static void f_trace(struct afb_req req)
if (add) {
rc = afb_trace_add(req, add, trace);
if (rc)
-
return
;
+
goto end
;
}
if (drop) {
rc = afb_trace_drop(req, drop, trace);
if (rc)
-
return
;
+
goto end
;
}
afb_req_success(req, NULL, NULL);
+end:
+ afb_apiset_update_hooks(main_apiset, NULL);
}