]> git.ipfire.org Git - thirdparty/suricata.git/commit
introduce fatal error macro's 1600/head
authorVictor Julien <victor@inliniac.net>
Fri, 10 Jul 2015 10:19:57 +0000 (12:19 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 20 Jul 2015 09:49:14 +0000 (11:49 +0200)
commit334e8656bf7cc08e24048a1d8c7865ec45ccb478
treef45cdc2f23736d02c4870cbb72b6c31c568ab83c
parent4dd53c8f03111da4c6b857f6e7486697b8be246f
introduce fatal error macro's

Add 'FatalError' and 'FatalErrorConditonal' that will take the same
args as SCLogError.

FatalError logs the error using SCLogError and then exits with return
code EXIT_FAILURE.

FatalErrorOnInit does the same only during init and with
--init-errors-fatal enabled, otherwise it just calls SCLogWarning. So
then the macro returns to the caller.

Implement this for output setup.
src/output-lua.c
src/runmodes.c
src/util-debug.h