jobs: Fix a lock of call sync 49/19849/1
authorJose Bollo <jose.bollo@iot.bzh>
Mon, 31 Dec 2018 08:33:01 +0000 (09:33 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 5 Feb 2019 08:58:01 +0000 (09:58 +0100)
commit5c23f4a29c9194fe7c16eb2a068f1d7e24bf57a7
tree5a598b35a10a89ec2cf9d7c2872fcefd278b4cf3
parente2ef2bacdb4179f0a416a9996a9d6fc6d448e31f
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: Ib4047e8c09f638655d83e7f2d0eeebe6c03cc69e
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
src/jobs.c