summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 4fd63a309..4150686c1 100644
--- a/src/log.c
+++ b/src/log.c
@@ -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);
}