|
|
@ -2000,8 +2000,6 @@ static int InitSignalHandler(SCInstance *suri)
|
|
|
|
* Will be run once per pcap in unix-socket mode */
|
|
|
|
* Will be run once per pcap in unix-socket mode */
|
|
|
|
void PreRunInit(const int runmode)
|
|
|
|
void PreRunInit(const int runmode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/* Initialize Datasets to be able to use them with unix socket */
|
|
|
|
|
|
|
|
DatasetsInit();
|
|
|
|
|
|
|
|
HttpRangeContainersInit();
|
|
|
|
HttpRangeContainersInit();
|
|
|
|
if (runmode == RUNMODE_UNIX_SOCKET)
|
|
|
|
if (runmode == RUNMODE_UNIX_SOCKET)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -2029,6 +2027,7 @@ void PreRunPostPrivsDropInit(const int runmode)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
StatsSetupPostConfigPreOutput();
|
|
|
|
StatsSetupPostConfigPreOutput();
|
|
|
|
RunModeInitializeOutputs();
|
|
|
|
RunModeInitializeOutputs();
|
|
|
|
|
|
|
|
DatasetsInit();
|
|
|
|
|
|
|
|
|
|
|
|
if (runmode == RUNMODE_UNIX_SOCKET) {
|
|
|
|
if (runmode == RUNMODE_UNIX_SOCKET) {
|
|
|
|
/* As the above did some necessary startup initialization, it
|
|
|
|
/* As the above did some necessary startup initialization, it
|
|
|
|