X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=38598189cf21fb3e36e802aa8d1c092062ca6940;hb=98a5bca16007a7c4740c4326ef83768d034aed3e;hp=5871d1259127af9e2b2dca96ea0ae28a7a5bae75;hpb=1d5157a6c68a790f7a50811f4a3b48b29ee82f58;p=src%2Fapp-framework-binder.git diff --git a/src/main.c b/src/main.c index 5871d125..38598189 100644 --- a/src/main.c +++ b/src/main.c @@ -39,6 +39,7 @@ #include "afb-context.h" #include "afb-hreq.h" #include "afb-sig-handler.h" +#include "afb-thread.h" #include "session.h" #include "verbose.h" #include "afb-common.h" @@ -650,12 +651,17 @@ int main(int argc, char *argv[]) { } if (afb_sig_handler_init() < 0) { - ERROR("main fail to initialise signal handlers"); + ERROR("failed to initialise signal handlers"); return 1; } if (afb_common_rootdir_set(config->rootdir) < 0) { - ERROR("main fail to set common root directory"); + ERROR("failed to set common root directory"); + return 1; + } + + if (afb_thread_init(3, 1, 20) < 0) { + ERROR("failed to initialise threading"); return 1; }