diff options
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); } |