From: Eric Leblond Date: Wed, 10 Feb 2021 16:26:47 +0000 (+0100) Subject: util/running-modes: don't exit in running mode X-Git-Tag: suricata-7.0.0-beta1~1816 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44460f1945f47b95d4a3063f032890fc65120d44;p=thirdparty%2Fsuricata.git util/running-modes: don't exit in running mode --- diff --git a/src/util-running-modes.c b/src/util-running-modes.c index b4f52ea6da..8748c0b15d 100644 --- a/src/util-running-modes.c +++ b/src/util-running-modes.c @@ -37,7 +37,7 @@ int ListKeywords(const char *keyword_info) AppLayerSetup(); SigTableSetup(); /* load the rule keywords */ SigTableList(keyword_info); - exit(EXIT_SUCCESS); + return TM_ECODE_DONE; } int ListAppLayerProtocols(const char *conf_filename) @@ -49,6 +49,6 @@ int ListAppLayerProtocols(const char *conf_filename) AppLayerSetup(); AppLayerListSupportedProtocols(); - exit(EXIT_SUCCESS); + return TM_ECODE_DONE; }