#ifdef BUILD_UNIX_SOCKET
-static int RunModeUnixSocketSingle(void);
+static int RunModeUnixSocketMaster(void);
static int unix_manager_file_task_running = 0;
static int unix_manager_file_task_failed = 0;
RunModeDispatch(RUNMODE_PCAP_FILE, NULL);
/* Un-pause all the paused threads */
+ TmThreadWaitOnThreadInit();
TmThreadContinueThreads();
return TM_ECODE_OK;
}
void RunModeUnixSocketRegister(void)
{
#ifdef BUILD_UNIX_SOCKET
+ /* a bit of a hack, but register twice to --list-runmodes shows both */
RunModeRegisterNewRunMode(RUNMODE_UNIX_SOCKET, "single",
"Unix socket mode",
- RunModeUnixSocketSingle);
- default_mode = "single";
+ RunModeUnixSocketMaster);
+ RunModeRegisterNewRunMode(RUNMODE_UNIX_SOCKET, "autofp",
+ "Unix socket mode",
+ RunModeUnixSocketMaster);
+ default_mode = "autofp";
#endif
return;
}
/**
* \brief Single thread version of the Pcap file processing.
*/
-static int RunModeUnixSocketSingle(void)
+static int RunModeUnixSocketMaster(void)
{
if (UnixManagerInit() != 0)
return 1;
break;
}
+ if (suri->runmode_custom_mode) {
+ ConfSet("runmode", suri->runmode_custom_mode);
+ }
+
AppLayerSetup();
/* Check for the existance of the default logging directory which we pick