Merge in SNORT/snort3 from ~OSTEPANO/snort3:cleanup_control to master
Squashed commit of the following:
commit
dcccfa9baccc02c0efa32e7592834457d6e9f1a1
Author: Oleksandr Stepanov <ostepano@cisco.com>
Date: Fri Aug 2 06:28:22 2024 -0400
control: Code cleanup
pthreads_started = pigs_started_count && num_threads <= pigs_started_count + pigs_failed;
-#ifdef REG_TEST
if (pthreads_started)
{
+#ifdef REG_TEST
LogMessage("All pthreads started\n");
+#endif
#ifdef SHELL
if (use_shell(SnortConfig::get_conf()))
}
#endif
}
-#endif
}
-#ifdef SHELL
- if(!pthreads_running)
+ if (!pthreads_running)
{
const unsigned num_threads = (!Trough::has_next()) ? max_swine : max_pigs;
unsigned pigs_running_count = 0;
pthreads_running = pigs_running_count && num_threads <= pigs_running_count + pigs_failed;
}
-#endif
if ( !exit_requested and (swine < max_pigs) and (src = Trough::get_next()) )
{