projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
call openlog on startup
[project/ubus.git]
/
ubusd.c
diff --git
a/ubusd.c
b/ubusd.c
index 89031053a2386700d1c9bf6f4eb36e8aa1d6b60f..c9cf8b6999e74879c99cde925a7ae6215ac1250a 100644
(file)
--- a/
ubusd.c
+++ b/
ubusd.c
@@
-17,6
+17,7
@@
#ifdef FreeBSD
#include <sys/param.h>
#endif
#ifdef FreeBSD
#include <sys/param.h>
#endif
+#include <syslog.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
@@
-363,6
+364,7
@@
int main(int argc, char **argv)
signal(SIGPIPE, SIG_IGN);
signal(SIGPIPE, SIG_IGN);
+ openlog("ubusd", LOG_PID, LOG_DAEMON);
uloop_init();
while ((ch = getopt(argc, argv, "s:")) != -1) {
uloop_init();
while ((ch = getopt(argc, argv, "s:")) != -1) {