]> git.ipfire.org Git - people/stevee/aiccu.git/commitdiff
syslog openlog
authorNorman Rasmussen <norman@rasmussen.co.za>
Sun, 10 Jan 2010 21:43:44 +0000 (21:43 +0000)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 26 Aug 2015 18:21:47 +0000 (18:21 +0000)
    Initialize syslog so that we log with our PID as DAEMON.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
common/aiccu.c

index 7697136466ad8ffc4b768758e67c177e3835f7d2..4bc7c97d6ff844c1a3d707e8e4f8b140c1225cb7 100755 (executable)
@@ -57,6 +57,9 @@ bool aiccu_InitConfig()
 #ifdef AICCU_GNUTLS
        int ret;
 #define CAFILE "ca.pem"
+#endif
+#ifndef _WIN32
+       openlog(NULL, LOG_PID, LOG_DAEMON);
 #endif
        /* Allocate & Initialize */
        g_aiccu = (struct AICCU_conf *)malloc(sizeof(*g_aiccu));