summaryrefslogtreecommitdiffstats
path: root/src/afb-session.c
diff options
context:
space:
mode:
authorJose Bollo <jose.bollo@iot.bzh>2019-08-02 16:23:50 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2019-08-09 14:34:43 +0000
commit6f13ad1989875b5a0ce50b24211fd1fba093735f (patch)
treee88b8447f6b282384ebaa009057c2871db7fb0ff /src/afb-session.c
parent3343b4d0514d25fd1f2365eb25049f748cab688e (diff)
Avoid lock when child dies
Interaction between pthread_cond_wait, pthread_broadcast and signal may lead to lock when the child of afb-daemon dies. To avoid that sad behavior, this commit defers the call to "job_exit" using lazy job queueing. Bug-AGL: SPEC-2720 Change-Id: Ifd1a56f4a439e1704f79a1291fa01f39b1640f29 Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-session.c')
-rw-r--r--src/afb-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-session.c b/src/afb-session.c
index 1bdb59db..61aa3f61 100644
--- a/src/afb-session.c
+++ b/src/afb-session.c
@@ -579,7 +579,7 @@ static int cookeyidx(const void *key)
* @param makecb the creation function or NULL
* @param freecb the release function or NULL
* @param closure an argument for makecb or the value if makecb==NULL
- * @param replace a boolean enforcing replecement of the previous value
+ * @param replace a boolean enforcing replacement of the previous value
*
* @return the value of the cookie
*