napatech: fix thread flags with THV_RUNNING

This update the Napatech vendor module with changes introduced in
13beba141c that introduces THV_RUNNING.
pull/9441/head
Ralph Eastwood 3 years ago committed by Victor Julien
parent 658bbbc078
commit 23e5386513

@ -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;
}

Loading…
Cancel
Save