call openlog on startup
Signed-off-by: John Crispin <blogic@openwrt.org>
This commit is contained in:
parent
9ffec46f73
commit
6c0fa3a8cf
1 changed files with 2 additions and 0 deletions
2
ubusd.c
2
ubusd.c
|
@ -17,6 +17,7 @@
|
|||
#ifdef FreeBSD
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
#include <syslog.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
@ -363,6 +364,7 @@ int main(int argc, char **argv)
|
|||
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
openlog("ubusd", LOG_PID, LOG_DAEMON);
|
||||
uloop_init();
|
||||
|
||||
while ((ch = getopt(argc, argv, "s:")) != -1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue