diff options
author | 2018-09-05 14:25:50 +0200 | |
---|---|---|
committer | 2018-09-05 17:04:51 +0200 | |
commit | 72385abda940862a920442a330fb6aa82673400f (patch) | |
tree | ec56fa44b960187546ba96d602dbf8ecc5a685bb /src/jobs.c | |
parent | a02a1627a954432cc65ec981cada8ba420d7ad2f (diff) |
main-afb-daemon: Export API after initialization
Exporting API after initialization is a simple technic
to avoid interleaving of incoming foreign calls during
initialisation.
Also a tiny fix in jobs.c and afb-socket.c.
Bug-AGL: SPEC-1724
Change-Id: I59596256481c8afcd88755ec303bf7f881b55c12
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/jobs.c')
-rw-r--r-- | src/jobs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -160,7 +160,7 @@ static struct job *job_create( job = malloc(sizeof *job); pthread_mutex_lock(&mutex); if (!job) { - errno = -ENOMEM; + errno = ENOMEM; goto end; } } |