diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2018-09-05 14:25:50 +0200 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2018-09-05 17:04:51 +0200 |
commit | 72385abda940862a920442a330fb6aa82673400f (patch) | |
tree | ec56fa44b960187546ba96d602dbf8ecc5a685bb /src/afb-socket.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/afb-socket.c')
-rw-r--r-- | src/afb-socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afb-socket.c b/src/afb-socket.c index ebbc58ec..77b5edf8 100644 --- a/src/afb-socket.c +++ b/src/afb-socket.c @@ -217,7 +217,7 @@ static int open_systemd(const char *spec) { #if defined(NO_SYSTEMD_ACTIVATION) errno = EAFNOSUPPORT; - fd = -1; + return -1; #else return afb_systemd_fds_for(spec); #endif |