Don't call finalise functions on fatal error
Also, return with non-zero exit code.
This commit is contained in:
parent
707b857b68
commit
6ba764b5be
1 changed files with 1 additions and 2 deletions
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
#include "sysincl.h"
|
#include "sysincl.h"
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
#include "conf.h"
|
#include "conf.h"
|
||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
#include "mkdirpp.h"
|
#include "mkdirpp.h"
|
||||||
|
@ -158,7 +157,7 @@ LOG_Fatal_Function(LOG_Facility facility, const char *format, ...)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
MAI_CleanupAndExit();
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ================================================== */
|
/* ================================================== */
|
||||||
|
|
Loading…
Reference in a new issue