]>
Commit | Line | Data |
---|---|---|
1 | commit 0f7db943bef0488644dce11c2ba2d19c180d8650 | |
2 | Author: Norman Rasmussen <norman@rasmussen.co.za> | |
3 | Date: Sun Jan 10 21:43:44 2010 +0000 | |
4 | ||
5 | Initialize syslog so that we log with our PID as DAEMON. | |
6 | ||
7 | diff --git a/common/aiccu.c b/common/aiccu.c | |
8 | index 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; |