You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
646 B

  1. diff --git a/daemon/daemon.c b/daemon/daemon.c
  2. index 7b2a3b425..5b19d105a 100644
  3. --- a/daemon/daemon.c
  4. +++ b/daemon/daemon.c
  5. @@ -715,12 +715,7 @@ static int daemon_start(void* raw_arg, bool foreground)
  6. }
  7. #ifdef HAVE_SYSLOG
  8. -
  9. - if (!foreground)
  10. - {
  11. - openlog(MY_NAME, LOG_CONS | LOG_PID, LOG_DAEMON);
  12. - }
  13. -
  14. + openlog(MY_NAME, LOG_CONS | LOG_PID, LOG_DAEMON);
  15. #endif
  16. /* Create new timer event to report daemon status */
  17. @@ -772,11 +767,8 @@ cleanup:
  18. /* shutdown */
  19. #ifdef HAVE_SYSLOG
  20. - if (!foreground)
  21. - {
  22. syslog(LOG_INFO, "%s", "Closing session");
  23. closelog();
  24. - }
  25. #endif