From: Norman Rasmussen Date: Sun, 10 Jan 2010 21:43:44 +0000 (+0000) Subject: syslog openlog X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28ad9c07d7e39b8c76174142696e10e8922a4871;p=people%2Fstevee%2Faiccu.git syslog openlog Initialize syslog so that we log with our PID as DAEMON. Signed-off-by: Stefan Schantl --- diff --git a/common/aiccu.c b/common/aiccu.c index 7697136..4bc7c97 100755 --- a/common/aiccu.c +++ b/common/aiccu.c @@ -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));