From 44460f1945f47b95d4a3063f032890fc65120d44 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 10 Feb 2021 17:26:47 +0100 Subject: [PATCH] util/running-modes: don't exit in running mode --- src/util-running-modes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2