projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e381596
)
make ubusd load the acl on start and HUP
author
John Crispin
<
[email protected]
>
Wed, 15 Apr 2015 23:54:15 +0000
(
01:54
+0200)
committer
John Crispin
<
[email protected]
>
Thu, 18 Jun 2015 17:01:17 +0000
(19:01 +0200)
Signed-off-by: John Crispin <
[email protected]
>
ubusd.c
patch
|
blob
|
history
diff --git
a/ubusd.c
b/ubusd.c
index c9cf8b6999e74879c99cde925a7ae6215ac1250a..c3edc70f5a95a53675b8a0e9337f1674b78d6dac 100644
(file)
--- a/
ubusd.c
+++ b/
ubusd.c
@@
-356,6
+356,11
@@
static int usage(const char *progname)
return 1;
}
+static void sighup_handler(int sig)
+{
+ ubusd_acl_load();
+}
+
int main(int argc, char **argv)
{
const char *ubus_socket = UBUS_UNIX_SOCKET;
@@
-363,6
+368,7
@@
int main(int argc, char **argv)
int ch;
signal(SIGPIPE, SIG_IGN);
+ signal(SIGHUP, sighup_handler);
openlog("ubusd", LOG_PID, LOG_DAEMON);
uloop_init();
@@
-386,6
+392,7
@@
int main(int argc, char **argv)
goto out;
}
uloop_fd_add(&server_fd, ULOOP_READ | ULOOP_EDGE_TRIGGER);
+ ubusd_acl_load();
uloop_run();
unlink(ubus_socket);