summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2018-12-31 09:33:01 +0100
committerJose Bollo <jose.bollo@iot.bzh>2018-12-31 14:54:29 +0100
commit821ed8ff1beabd10cf9b9046e41fb7e954ff93c0 (patch)
tree19a46fcb31ec0e4556ed1357d2705ddb1063db33 /bindings
parent3e0e6f1c09af031ec1bbaf0649b2d8360c145947 (diff)
jobs: Fix a lock of call sync
Sometime the function jobs_leave missed to wake up the process that expected the result. It happened when that waiting thread was locked in the epoll. That commit unlock it. Bug-AGL: SPEC-2089 Change-Id: I6ab6a60a8c9ea3639143f282f90c7b77ed16853a Signed-off-by: Jose Bollo <jose.bollo@iot.bzh> Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/samples/AuthLogin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/samples/AuthLogin.c b/bindings/samples/AuthLogin.c
index 0f29dd0d..dcb5e576 100644
--- a/bindings/samples/AuthLogin.c
+++ b/bindings/samples/AuthLogin.c
@@ -71,7 +71,7 @@ static void clientContextRefresh (afb_req_t request) {
static void clientContextCheck (afb_req_t request) {
json_object *jresp = json_object_new_object();
- json_object_object_add(jresp, "isvalid", json_object_new_boolean (TRUE));
+ json_object_object_add(jresp, "isvalid", json_object_new_boolean (1));
afb_req_success(request, jresp, NULL);
}