jobs: Fix a lock of call sync 05/19405/1
authorJose Bollo <jose.bollo@iot.bzh>
Mon, 31 Dec 2018 08:33:01 +0000 (09:33 +0100)
committerJose Bollo <jose.bollo@iot.bzh>
Mon, 31 Dec 2018 13:54:29 +0000 (14:54 +0100)
commit821ed8ff1beabd10cf9b9046e41fb7e954ff93c0
tree19a46fcb31ec0e4556ed1357d2705ddb1063db33
parent3e0e6f1c09af031ec1bbaf0649b2d8360c145947
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>
bindings/samples/AuthLogin.c
src/jobs.c