Signed-off-by: John Crispin <blogic@openwrt.org>
return 1;
}
+static void sighup_handler(int sig)
+{
+ ubusd_acl_load();
+}
+
int main(int argc, char **argv)
{
const char *ubus_socket = UBUS_UNIX_SOCKET;
int ch;
signal(SIGPIPE, SIG_IGN);
+ signal(SIGHUP, sighup_handler);
openlog("ubusd", LOG_PID, LOG_DAEMON);
uloop_init();
goto out;
}
uloop_fd_add(&server_fd, ULOOP_READ | ULOOP_EDGE_TRIGGER);
+ ubusd_acl_load();
uloop_run();
unlink(ubus_socket);