jobs: Fix a lock of call sync 95/19395/4
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 11:18:18 +0000 (12:18 +0100)
commite84fc44c47b42651fef17405f5bc09e5079d4a72
treeaaaf79c65adf96b57e6676e8eb52c182508223b5
parent68b824f6fc20e42c9769eddd8597fe6fdae626b5
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>
src/jobs.c