X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=cee559694041e0399cad0dacab47321126ac83c4;hb=f05bc513bc0e0a977e6393e859cecbec77b420c6;hp=71b21388b168839fa59ffab7326e2a99e8113887;hpb=c710a0da4ebcc126275c42a0387ff85b2557e3ae;p=src%2Fapp-framework-binder.git diff --git a/src/main.c b/src/main.c index 71b21388..cee55969 100644 --- a/src/main.c +++ b/src/main.c @@ -99,11 +99,10 @@ static void start_list(struct afb_config_list *list, +--------------------------------------------------------- */ static void exit_handler() { - /* TODO: check whether using SIGHUP isn't better */ if (SELF_PGROUP) - killpg(0, SIGKILL); + killpg(0, SIGHUP); else if (childpid > 0) - killpg(childpid, SIGKILL); + killpg(childpid, SIGHUP); } /*---------------------------------------------------------- @@ -412,7 +411,7 @@ static void start() goto error; } - afb_api_so_set_timeout(config->apiTimeout); + afb_apis_set_timeout(config->apiTimeout); start_list(config->dbus_clients, afb_api_dbus_add_client, "the afb-dbus client"); start_list(config->ws_clients, afb_api_ws_add_client, "the afb-websocket client"); start_list(config->ldpaths, afb_api_so_add_pathset, "the binding path set"); @@ -495,7 +494,7 @@ int main(int argc, char *argv[]) signal(SIGPIPE, SIG_IGN); /* enter job processing */ - jobs_enter(3, 1, 20, start); + jobs_start(3, 0, 50, start); WARNING("hoops returned from jobs_enter! [report bug]"); return 1; }