From 23e53865131e9c6a947e6f540359d95b4228ac81 Mon Sep 17 00:00:00 2001 From: Ralph Eastwood Date: Thu, 3 Aug 2023 12:40:13 +0000 Subject: [PATCH] napatech: fix thread flags with THV_RUNNING This update the Napatech vendor module with changes introduced in 13beba141c98debc4d7e29081c91a799362f19fb that introduces THV_RUNNING. --- src/util-napatech.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/util-napatech.c b/src/util-napatech.c index b23bd1316e..74ff82fda7 100644 --- a/src/util-napatech.c +++ b/src/util-napatech.c @@ -643,7 +643,7 @@ static void *NapatechStatsLoop(void *arg) "active streams."); } - TmThreadsSetFlag(tv, THV_INIT_DONE); + TmThreadsSetFlag(tv, THV_INIT_DONE | THV_RUNNING); while (1) { if (TmThreadsCheckFlag(tv, THV_KILL)) { SCLogDebug("NapatechStatsLoop THV_KILL detected"); @@ -1027,7 +1027,7 @@ static void *NapatechBufMonitorLoop(void *arg) exit(EXIT_FAILURE); } - TmThreadsSetFlag(tv, THV_INIT_DONE); + TmThreadsSetFlag(tv, THV_INIT_DONE | THV_RUNNING); while (1) { if (TmThreadsCheckFlag(tv, THV_KILL)) { SCLogDebug("NapatechBufMonitorLoop THV_KILL detected"); @@ -1217,7 +1217,6 @@ void NapatechStartStats(void) FatalError("Failed to spawn thread for NapatechBufMonitor - Killing engine."); } - return; }