+--------------------------------------------------------- */
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);
}
/*----------------------------------------------------------
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");
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;
}