diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-07-13 16:38:55 +0200 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2018-07-16 17:09:23 +0200 |
commit | bebb8fa967f3b71b609119b293d2869d56036586 (patch) | |
tree | 213e124303fe9cec424283839d728d896da3cae0 /src/main-afs-supervisor.c | |
parent | 2ab7061438040c68346124268ecf4081c835cbf2 (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-afs-supervisor.c')
-rw-r--r-- | src/main-afs-supervisor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main-afs-supervisor.c b/src/main-afs-supervisor.c index 14f1c3b0..461b0a0f 100644 --- a/src/main-afs-supervisor.c +++ b/src/main-afs-supervisor.c @@ -160,7 +160,7 @@ static void start(int signum, void *arg) } /* start the services */ - 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 */ |