diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-08-29 19:05:59 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-08-29 19:05:59 +0000 |
commit | 3c1a2fbfca39b47e2f6df7862e7c83fe9f49f1c9 (patch) | |
tree | 1ca88f21a4d173027a66a7433a38b29202ff958e /src/log.c | |
parent | 56800d410333084d3b8e527bc91422aab7e19477 (diff) |
BUILD : 1.7.19 (1289) BUGS : 768 NOTES : Fixed module runtime directory not always being cleaned up nicely
git-svn-id: svn://svn.anope.org/anope/trunk@1289 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1007 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -247,6 +247,9 @@ void fatal(const char *fmt, ...) if (servsock >= 0) anope_cmd_global(NULL, "FATAL ERROR! %s", buf2); + /* one of the many places this needs to be called from */ + ModuleRunTimeDirCleanUp(); + exit(1); } @@ -283,6 +286,9 @@ void fatal_perror(const char *fmt, ...) anope_cmd_global(NULL, "FATAL ERROR! %s: %s", buf2, strerror(errno_save)); + /* one of the many places this needs to be called from */ + ModuleRunTimeDirCleanUp(); + exit(1); } @@ -323,5 +329,8 @@ void fatal_sockerror(const char *fmt, ...) anope_cmd_global(NULL, "FATAL ERROR! %s: %s", buf2, strerror(errno_save)); + /* one of the many places this needs to be called from */ + ModuleRunTimeDirCleanUp(); + exit(1); } |