From 6c0fa3a8cf9690b2c787f3b8941202e3d2501592 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 16 Apr 2015 01:54:54 +0200 Subject: [PATCH] call openlog on startup Signed-off-by: John Crispin --- ubusd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ubusd.c b/ubusd.c index 8903105..c9cf8b6 100644 --- a/ubusd.c +++ b/ubusd.c @@ -17,6 +17,7 @@ #ifdef FreeBSD #include #endif +#include #include #include #include @@ -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) { -- 2.25.1