#include "afb-hsrv.h"
#include "afb-context.h"
#include "afb-hreq.h"
-#include "afb-sig-handler.h"
-#include "afb-thread.h"
+#include "sig-monitor.h"
+#include "jobs.h"
#include "afb-session.h"
#include "verbose.h"
#include "afb-common.h"
start_list(config->ldpaths, afb_api_so_add_pathset, "the binding path set");
start_list(config->so_bindings, afb_api_so_add_binding, "the binding");
- afb_session_init(config->nbSessionMax, config->cntxTimeout, config->token, afb_apis_count());
+ afb_session_init(config->nbSessionMax, config->cntxTimeout, config->token);
start_list(config->dbus_servers, afb_api_dbus_add_server, "the afb-dbus service");
start_list(config->ws_servers, afb_api_ws_add_server, "the afb-websocket service");
exit(1);
}
- if (afb_sig_handler_init() < 0) {
+ if (sig_monitor_init() < 0) {
ERROR("failed to initialise signal handlers");
return 1;
}
return 1;
}
- if (afb_thread_init(3, 1, 20) < 0) {
+ if (jobs_init(3, 1, 20) < 0) {
ERROR("failed to initialise threading");
return 1;
}