aboutsummaryrefslogtreecommitdiffstats
path: root/src/main-afb-daemon.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2018-07-13 16:38:55 +0200
committerJose Bollo <jose.bollo@iot.bzh>2018-07-16 17:09:23 +0200
commitbebb8fa967f3b71b609119b293d2869d56036586 (patch)
tree213e124303fe9cec424283839d728d896da3cae0 /src/main-afb-daemon.c
parent2ab7061438040c68346124268ecf4081c835cbf2 (diff)
Simplify starting of services
The previous version was confusing and was expecting that onneed and share_session were always true. Removing this parameter simplifies the code. Also handle errors of required classes and apis at initialisation. Change-Id: I7c99aa356cba41f368bd47cab797fa086a5740af Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/main-afb-daemon.c')
-rw-r--r--src/main-afb-daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main-afb-daemon.c b/src/main-afb-daemon.c
index c1204464..ce681e38 100644
--- a/src/main-afb-daemon.c
+++ b/src/main-afb-daemon.c
@@ -619,7 +619,7 @@ static void start(int signum, void *arg)
#if !defined(NO_CALL_PERSONALITY)
personality((unsigned long)-1L);
#endif
- if (afb_apiset_start_all_services(main_apiset, 1) < 0)
+ if (afb_apiset_start_all_services(main_apiset) < 0)
goto error;
/* start the HTTP server */