From 5ec0b0c8dc4b9aa479f8010f7a94aa3d99b0aac5 Mon Sep 17 00:00:00 2001 From: piaip Date: Fri, 19 Jun 2009 10:39:25 +0000 Subject: * move emaildb to standalone regmaildb * integrate the daemon structure to daemons.h git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4671 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- daemon/logind/loginc.c | 2 +- daemon/logind/logind.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'daemon/logind') diff --git a/daemon/logind/loginc.c b/daemon/logind/loginc.c index 1de9b5f8..901ee59c 100644 --- a/daemon/logind/loginc.c +++ b/daemon/logind/loginc.c @@ -4,7 +4,7 @@ #include #include "bbs.h" -#include "logind.h" +#include "daemons.h" // standalone client to test logind diff --git a/daemon/logind/logind.c b/daemon/logind/logind.c index 2f7253bf..04ad99e5 100644 --- a/daemon/logind/logind.c +++ b/daemon/logind/logind.c @@ -34,7 +34,7 @@ #include "bbs.h" #include "banip.h" -#include "logind.h" +#include "daemons.h" #ifndef LOGIND_REGULAR_CHECK_DURATION #define LOGIND_REGULAR_CHECK_DURATION (15) @@ -2236,7 +2236,11 @@ main(int argc, char *argv[], char *envp[]) } // warning: after daemonize, the directory was changed to root (/)... - fprintf(stderr, LOG_PREFIX "start event dispatch.\r\n"); + { + time4_t tnow = time(0); + fprintf(stderr, LOG_PREFIX "%s: start event dispatch.\r\n", + Cdate(&tnow)); + } event_dispatch(); return 0; -- cgit v1.2.3