Don't call finalise functions on fatal error

Also, return with non-zero exit code.
This commit is contained in:
Miroslav Lichvar 2013-06-19 12:28:00 +02:00
parent 707b857b68
commit 6ba764b5be

View file

@ -29,7 +29,6 @@
#include "sysincl.h"
#include "main.h"
#include "conf.h"
#include "logging.h"
#include "mkdirpp.h"
@ -158,7 +157,7 @@ LOG_Fatal_Function(LOG_Facility facility, const char *format, ...)
}
#endif
MAI_CleanupAndExit();
exit(1);
}
/* ================================================== */