summaryrefslogtreecommitdiff
path: root/usr/log.c
diff options
context:
space:
mode:
authormnc <mnc@d7303112-9cec-0310-bdd2-e83a94d6c2b6>2006-02-07 00:50:45 +0000
committermnc <mnc@d7303112-9cec-0310-bdd2-e83a94d6c2b6>2006-02-07 00:50:45 +0000
commit9a2377a26b1663405c616d3f86eb6d47fcc76da1 (patch)
tree77f1a0741801590efa5aa1b12bbd8d2374286e12 /usr/log.c
parent22ee2b04dddb4c0e57c3dc0581f483b183982a36 (diff)
downloadopen-iscsi-9a2377a26b1663405c616d3f86eb6d47fcc76da1.tar.gz
From DanA and TomoF - fix logging daemon code
git-svn-id: svn://svn.berlios.de/open-iscsi@486 d7303112-9cec-0310-bdd2-e83a94d6c2b6
Diffstat (limited to 'usr/log.c')
-rw-r--r--usr/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/log.c b/usr/log.c
index a3c6fc2..5a745df 100644
--- a/usr/log.c
+++ b/usr/log.c
@@ -16,6 +16,7 @@
#include <sys/ipc.h>
#include <sys/types.h>
+#include "util.h"
#include "log.h"
#define SEMKEY 0xA7L
@@ -380,6 +381,8 @@ int log_init(char *program_name, int size)
return 0;
}
+ daemon_init();
+
/* flush on daemon's crash */
sa_new.sa_handler = (void*)log_flush;
sigemptyset(&sa_new.sa_mask);