diff options
Diffstat (limited to 'log.c')
-rw-r--r-- | log.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -328,6 +328,8 @@ logger_main(int fd, struct imsgbuf *ibuf) { log = stderr; + openlog(getprogname(), LOG_NDELAY, LOG_DAEMON); + event_init(); event_set(&imsgev, fd, EV_READ | EV_PERSIST, &handle_dispatch_imsg, ibuf); @@ -337,5 +339,7 @@ logger_main(int fd, struct imsgbuf *ibuf) event_dispatch(); + closelog(); + return 0; } |