]> git.pld-linux.org Git - packages/aiccu.git/blame - 06_syslog_openlog.patch
- cleanup
[packages/aiccu.git] / 06_syslog_openlog.patch
CommitLineData
3ed092f9
JR
1commit 0f7db943bef0488644dce11c2ba2d19c180d8650
2Author: Norman Rasmussen <norman@rasmussen.co.za>
3Date: Sun Jan 10 21:43:44 2010 +0000
4
5 Initialize syslog so that we log with our PID as DAEMON.
6
7diff --git a/common/aiccu.c b/common/aiccu.c
8index 9abb334..75aadc8 100755
9--- a/common/aiccu.c
10+++ b/common/aiccu.c
11@@ -58,6 +58,9 @@ bool aiccu_InitConfig()
12 int ret;
13 #define CAFILE "ca.pem"
14 #endif
15+#ifndef _WIN32
16+ openlog(NULL, LOG_PID, LOG_DAEMON);
17+#endif
18 /* Allocate & Initialize */
19 g_aiccu = (struct AICCU_conf *)malloc(sizeof(*g_aiccu));
20 if (!g_aiccu) return false;
This page took 0.057858 seconds and 4 git commands to generate.