From 94e1160fcf8f523fcc30e84a11071dcf70868e6d Mon Sep 17 00:00:00 2001 From: "certus certus@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Fri, 14 Jul 2006 17:55:51 +0000 Subject: # BUILD : 1.7.14 (1088) # BUGS : # NOTES : applied trystan's patch for 491. git-svn-id: svn://svn.anope.org/anope/trunk@1088 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@812 5417fbe8-f217-4b02-8779-1006273d7864 --- src/main.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 2e6de7ddb..c3ed705db 100644 --- a/src/main.c +++ b/src/main.c @@ -98,6 +98,7 @@ static int started = 0; extern void expire_all(void) { + waiting = -30; send_event(EVENT_DB_EXPIRE, 1, EVENT_START); waiting = -3; if (debug) @@ -124,7 +125,9 @@ extern void expire_all(void) waiting = -27; expire_szlines(); } + waiting = -29; expire_exceptions(); + waiting = -31; send_event(EVENT_DB_EXPIRE, 1, EVENT_STOP); } @@ -132,8 +135,8 @@ extern void expire_all(void) void save_databases(void) { + waiting = -19; send_event(EVENT_DB_SAVING, 1, EVENT_START); - waiting = -2; if (debug) alog("debug: Saving FFF databases"); @@ -204,6 +207,7 @@ void save_databases(void) } } #endif + waiting = -20; send_event(EVENT_DB_SAVING, 1, EVENT_STOP); } @@ -393,6 +397,12 @@ void sighandler(int signum) case -18: snprintf(buf, sizeof(buf), "saving %s", ExceptionDBName); break; + case -19: + snprintf(buf, sizeof(buf), "Sending event %s %s", EVENT_DB_SAVING, EVENT_START); + break; + case -20: + snprintf(buf, sizeof(buf), "Sending event %s %s", EVENT_DB_SAVING, EVENT_STOP); + break; case -21: snprintf(buf, sizeof(buf), "expiring nicknames"); break; @@ -411,6 +421,15 @@ void sighandler(int signum) case -28: snprintf(buf, sizeof(buf), "expiring SQLINEs"); break; + case -29: + snprintf(buf, sizeof(buf), "expiring Exceptions"); + break; + case -30: + snprintf(buf, sizeof(buf), "Sending event %s %s", EVENT_DB_EXPIRE, EVENT_START); + break; + case -31: + snprintf(buf, sizeof(buf), "Sending event %s %s", EVENT_DB_EXPIRE, EVENT_STOP); + break; default: snprintf(buf, sizeof(buf), "waiting=%d", waiting); } @@ -649,10 +668,6 @@ void do_backtrace(int show_segheader) alog("Backtrace: not available on this platform"); #endif #else - char *winver; - winver = GetWindowsVersion(); - alog("Backtrace: not available on Windows"); - alog("Running %S", winver); - free(winver); + char *winver; winver = GetWindowsVersion(); alog("Backtrace: not available on Windows"); alog("Running %S", winver); free(winver); #endif } -- cgit